average

get average from given collection of numbers


Parameters

average collection :block :range

Returns

  • :floating

Examples

copy
print average [2 4 5 6 7 2 3] ; 4.142857142857143

Related