Hacker News new | ask | show | jobs
by zimpenfish 1835 days ago
> For instance, map - I know that it will return a new collection of exactly the same number of items the iterable being iterated has.

Unless you're using Perl - "Each element of LIST may produce zero, one, or more elements in the generated list".

1 comments

Perl implements flatMap and calls it map :-)