- :integer
- :floating
sum
∑
calculate the sum of all values in given list
Parameters
sum collection :block :range
Returns
Examples
copyprint sum [3 4] ; 7 print sum [1 2 4 6] ; 13
copyprint sum 1..10 ; 55
∑
sum collection :block :range
copyprint sum [3 4] ; 7 print sum [1 2 4 6] ; 13
copyprint sum 1..10 ; 55