ccapndave/elm-flat-map - version: 1.2.0

for more information visit the package's GitHub page

Package contains the following modules:

elm-flat-map

An Elm package to implement flatMap over various Elm types and parameter counts.

So far this is just implemented for Lists and Maybes.

In my experience the most common use case is when mapping over multiple Maybes at once returns a Maybe. In this case you can use flatMap2 and get back a Maybe a instead of a Maybe (Maybe a), which you very rarely want. Note that flatMap is included for completeness, but its identical to Maybe.andThen.