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