The OpenD Programming Language

fold.fold

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

Parameters

r R

the input range to fold

seeds S

the initial values of each accumulator (optional), one for each predicate

Return Value

Type: auto

Either the accumulated result for a single predicate, or a `Tuple` of results.

Meta