fold.fold

template fold(fun...)
fold
(
R
S...
)
(
R r
,)
if (
fun.length >= 1
)

Parameters

r R

the input range to fold

seed S

the initial value of the accumulator

Return Value

Type: auto

the accumulated result

Meta