RosettaCodeData/Task/Averages-Arithmetic-mean/Factor/averages-arithmetic-mean-1.factor

5 lines
92 B
Factor
Raw Permalink Normal View History

2013-04-10 21:29:02 -07:00
USING: math math.statistics ;
: arithmetic-mean ( seq -- n )
[ 0 ] [ mean ] if-empty ;