chickadee » slib-arraymap » array-fold

(array-fold PROC SEED [ARR0 ...]) -> *procedure

PROC is applied to the SEED & each tuple of elements of ARR0 ... in row-major order. The value returned is the result of the repeated application of PROC to SEED.

PROC
(* [* ...] -> *) ; SEEDi+1 <- (PROC SEEDi [ARR0i ...])
SEED
* ; initial value
ARR0 ...
array ... ; arrays to fold