RosettaCodeData/Task/Averages-Arithmetic-mean/Factor/averages-arithmetic-mean-1.factor
2023-07-01 13:44:08 -04:00

4 lines
92 B
Factor

USING: math math.statistics ;
: arithmetic-mean ( seq -- n )
[ 0 ] [ mean ] if-empty ;