def
func:avg
avg(val, acc)
Fold multiple values into their standard average or arithmetic mean. This function is the same as math::mean
. Null values are ignored. Return null if no values.
Example:
[7, 2, 3].fold(avg) >> 4
Fold multiple values into their standard average or arithmetic mean. This function is the same as math::mean
. Null values are ignored. Return null if no values.
Example:
[7, 2, 3].fold(avg) >> 4