Update "Use flat_map instead of map + flatten"

See [Issue:143]
Merge pull request #144 from wteuber/patch-1

Update "Use flat_map instead of map + flatten"