Foldable.md

May 18, 2018 ยท View on GitHub

Module Elm.Foldable

Elm modules define foldl with a different signature than Purescript's. So, we define that alternative foldl here.

foldl

foldl :: forall a b f. Foldable f => (a -> b -> b) -> b -> f a -> b

Reduce a container from the left.

Equivalent to Purescript's foldl, but the function you supply is flipped.