Vocabulary
lists

Inputs
lista list
identityan object
quota quotation with stack effect ( ... prev elt -- ... next )


Outputs
resultthe final result


Word description
Combines successive elements of the list (in a left-associative order) using a binary operation and outputs the final result.

See also
leach, lmap-lazy, ltake, lfilter, lappend-lazy, lfrom, lfrom-by, lconcat, lcartesian-product, lcartesian-product*, lcartesian-map, lcartesian-map*, lmerge, lwhile, luntil

Definition


: foldl
( ... list identity quot: ( ... prev elt -- ... next ) -- ... result )
swapd leach ; inline