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
Quoting from the Functor documentation at https://wiki.haskell.org/Typeclassopedia#Functor
You might ask why we need a separate
mapfunction. Why not just do away with the current list-onlymapfunction, and renamefmaptomapinstead? Well, that’s a good question. The usual argument is that someone just learning Haskell, when usingmapincorrectly, would much rather see an error about lists than aboutFunctor.