In Elm, reducing functions are called "folds", and there are two standard methods to "fold" values up: from the left, foldl, and from the right, foldr.
> List.foldl (+) 0 [1,2,3]
6 : number
The arguments to foldl and foldr are:
reducing function: newValue -> accumul...