2 ms·
mapM_ (printf "The %s thing with Haskell is that it can be extremely compact\n") ["nice thing", "problem"] This works. :) Alternatively, you could d
by chongli 13y ago
mapM_ (printf "The %s thing with Haskell is that it can be extremely compact\n")
["nice thing", "problem"]
This works. :)
Alternatively, you could do this:
forM_ ["nice thing", "problem"] $
printf "The %s thing with Haskell is that it can be extremely compact\n"