elixir-lang/elixir — pull request #1578 by guilleiguaran (2013-08-10 06:46:22+00:00)
Title: Add Enum.flat_map

Returns a new collection appending the result of invoking `fun` on each corresponding item of `collection`.

This similar to Scala's ``flatMap``, Haskell's ``>>=`` and it uses Erlang's ``lists:flatmap`` when collection is a list