[Haskell-beginners] I don't understand mapM in mapM id (Just 1, Nothing, Just 3)

Kees Bleijenberg k.bleijenberg at inter.nl.net
Fri May 20 14:31:54 CEST 2011


I was playing with winghci and I tried:
 
mapM id [Just 1, Just 2, Just 3]
result: Just [1,2,3]
 
I don't understand this answer.
 


More information about the Beginners mailing list