Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

    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"


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: