Comment

Comment by codygman

    mapM_ putStrLn ["hat", "dog", "cat"]
I'd say the above is pretty simple if explained after:

    putStrLn "hello world"
You don't really have to go into Monads for this to be understood/used. You can just leave it at "you use functions ending with an M if they do something like print out to the screen or get stuff from a web page".
parent codygman 12 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton