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
_______________________________________________
Haskell mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/haskell