flatmap
Mats Cronqvist
mats.cronqvist@REDACTED
Mon Feb 27 15:07:18 CET 2006
Robert Virding wrote:
> No, it should say append! Flatten/1 works recursively to completely
> flatten an term while append/1 only does it at the top level.
ouch. i just took for granted that append/1 was a typo, since clearly :>
something called 'append' must take two arguments... my bad.
> The types don't really say much though, perhaps they should be:
>
> Function = fun (A) -> [B]
> List1 = [A]
> Element = list()
yeah, and Element isn't such a great name for a list either.
mats
More information about the erlang-questions
mailing list