Foldr and foldl are two higher-order functions
that transform lists using a combination operator.
When the operator is associative then the two are
equivalent. Compare the two by exploring the evaluation of
a list sum using folds.
Back
Pedro Vasconcelos, 2023.
Powered by Elm and
CodeMirror.