RosettaCodeData/Task/Averages-Arithmetic-mean/Factor/averages-arithmetic-mean-1.factor
Ingy döt Net db842d013d A-M baby
2013-04-10 21:29:02 -07:00

4 lines
92 B
Factor

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