3 ms·
The nice thing with Haskell is that it can be extremely compact. The problem with Haskell is that it can be extremely compact.
by mercurial 13y ago
The nice thing with Haskell is that it can be extremely compact. The problem with Haskell is that it can be extremely compact.
- bjackman 13y agomap (format "The %s thing with Haskell is that it can be extremely compact") ["nice thing", "problem"] (disclaimer: that probably isn't actual Haskell syntax.)
- ajanuary 13y agomap (("The "++).(++" with Haskell is that it can be extremely compact")) ["nice thing", "problem"]
- chongli 13y agomapM_ (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"