mir-algorithm — Libmir Archive
← Libmir Archive
Dlang.org
fold.fold
mir
algorithm
iteration
fold
template
fold
(alias fun)
@
fmamath
@
fmamath
auto
fold
(
Slice
S
)
(
scope
Slice
slice
,
S
seed
)
Parameters
slice
Slice
A slice, range, and array.
seed
S
An initial accumulation value.
Return Value
Type:
auto
the accumulated result
mir
algorithm
iteration
fold
functions
fold