internal fun checkIfDataIsNegative(data: List<Double>) { data.forEach { if (it < 0.0) { throw Exception("The data can't contains negative values.") } } }
internal fun checkIfDataIsNegative(data: List) {
data.forEach {
if (it < 0.0) {
throw Exception("The data can't contains negative values.")
}
}
}