mir-algorithm — Libmir Archive
Libmir Archive
API Reference Index
mir-algorithm Guide
Dlang.org
sum.sum
mir
math
sum
sum
Computes the sum of elements in a range, optionally using a seed value for the initial sum.
sumType
!
Range
sum
(Range r)
F
sum
(Range r, F seed)
sumType
!
Range
sum
(Range r)
F
sum
(Range r, F seed)
sumType
!
T
sum
(T[] ar)
template
sum
(Summation summation = Summation.appropriate)
sumType
!
T
sum
(
T
)
(
scope
const
T
[]
ar
...
)
mir
math
sum
sum
functions
sum
Computes the sum of elements in a range, optionally using a seed value for the initial sum.