Why concatMap instead of concat.map?

Dr Mark H Phillips mark@austrics.com.au
11 Sep 2002 12:20:08 +0930


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"?

Cheers,

Mark.

-- 
Dr Mark H Phillips
Research Analyst (Mathematician)

AUSTRICS - smarter scheduling solutions - www.austrics.com

Level 2, 50 Pirie Street, Adelaide SA 5000, Australia
Phone +61 8 8226 9850
Fax   +61 8 8231 4821
Email mark@austrics.com.au