mir-algorithm — Libmir Archive
← Libmir Archive
Dlang.org
reduce.reduce
mir
algorithm
iteration
reduce
template
reduce
(alias fun)
@
fmamath
static if
(
__traits(isSame, naryFun!fun, fun) && !Mir_disable_inlining_in_reduce
)
@
fmamath
auto
reduce
(
S
Slices
...
)
(
S
seed
,
Slices
slices
)
if
(
Slices.length
)
Parameters
seed
S
An initial accumulation value.
slices
Slices
One or more slices, range, and arrays.
Return Value
Type:
auto
the accumulated
result
mir
algorithm
iteration
reduce
functions
reduce