2 ms·
I'm not sure this will reflect well on Haskell that this is the most natural way I can think to write it. But I can pretty much guarantee replicateM_[0] is the
by jewbacca 14y ago
I'm not sure this will reflect well on Haskell that this is the most natural way I can think to write it. But I can pretty much guarantee replicateM_[0] is the most generalizable idiom in this whole comments section.
replicateM_ 100 $ print "Hello World!"
It's pretty to me, damnit.
-----
[0] http://hackage.haskell.org/packages/archive/base/latest/doc/html/Control-Monad.html#v:replicateM http://hackage.haskell.org/packages/archive/base/latest/doc/...