The Open
D
Programming Language
Learn
Language
Library
Contribute
Blog
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
Meta
Source
See Implementation
mir
algorithm
iteration
fold
functions
fold