def
func:mean
mean(val, acc)
Fold a sample of numbers into their standard average or arithmetic mean. This function is the same as core::avg
. Nulls values are ignored. Return null if no values.
Example:
[2, 4, 5, 3].fold(mean)
Fold a sample of numbers into their standard average or arithmetic mean. This function is the same as core::avg
. Nulls values are ignored. Return null if no values.
Example:
[2, 4, 5, 3].fold(mean)