Re:Confessions of a Ruby Developer Whose Heart was Stolen by...
by dons on Thursday June 13, 2013 @05:37AM
(#5873079)
You don't know Haskell.
> take 8 $ cycle [1,2,3]
Re:Confessions of a Ruby Developer Whose Heart was Stolen by...
by pja on Thursday June 13, 2013 @06:29AM
(#5873257)
cycleM x = x `mplus` (cycleM x)
take 8 $ cycleM [1,2,3]
might be more generic?
Re:Confessions of a Ruby Developer Whose Heart was Stolen by...
by lucian1900 on Thursday June 13, 2013 @05:50AM
(#5873121)
Scala maybe, not Haskell (which barely has any syntax).
Scala, Haskell treat syntax as a chore.