11 Sep
2002
11 Sep
'02
1:23 p.m.
On Wednesday, 2002-09-11, 09:54, CEST, Martin Norbäck wrote:
ons 2002-09-11 klockan 04.50 skrev Dr Mark H Phillips:
Hi,
Why does Haskell have a special function called concatMap, rather than people just doing "concat.map"? Is it because concatMap has a more sophisticated implementation than doing just "concat.map"?
I think it's just because it's easier to read/write
concatMap f list
than
(concat.map) f list
Hmm, but (=<<) for lists is equivalent to concatMap and f =<< list is, in my opinion, at least easier to read than concatMap f list. But opinions may differ here.
Regards,
Martin
Ciao, Wolfgang