Everywhere I’ve tried using map, fmap has worked as well. Why did the creators of Haskell feel the need for a map function? Couldn’t it just be what is currently known as fmap and fmap could be removed from the language?
Everywhere I’ve tried using map , fmap has worked as well. Why did the
Share
I would like to make an answer to draw attention to augustss’s comment:
Haskell 98 is seen as a step backwards by some Haskellers (including me), previous versions having defined a more abstract and consistent library. Oh well.