method
sum
v8.0.0 -
Show latest stable
- Class:
Range
sum(initial_value = 0)public
Optimize range sum to use arithmetic progression if a block is not given and we have a range of numeric values.
sum(initial_value = 0)Optimize range sum to use arithmetic progression if a block is not given and we have a range of numeric values.