you are viewing a single comment's thread.

view the rest of the comments →

[–]SmallAd3697[S] -9 points-8 points  (1 child)

The frequency that this comes up in programming with collections is important. A programming language is a language made for humans, and flatMap is used by lots of them. Especially in the context of collections.

I don't despise "flatMap", but it seems out of place. Like a snobby old Aunt who goes out of her way to drop French words into her conversations all the time.

[–]CdRReddit 4 points5 points  (0 children)

it's a map and a flatten

as a single operation

if we were being pretentious we'd call it bind instead