I have a simple list like this:

qlist = ["ll", "kkkkkkk", "ddddd"]

Why is it OK to do this:

qwrap [] = putStrLn ":"
qwrap (a:as) = do 
                putStrLn a
                qwrap as

qwap qlist

but not this:

map putStrLn qlist

What is going on in the map function?

McQueen
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to