News for hackers. Stuff that matters.
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?