News for hackers. Stuff that matters.
Re:Pissed off about functional programming by klodolph on Sunday March 27, 2011 @01:24AM (#2374252)
In Haskell, I can:

    x = 0:y
    y = 1:x
    main = print $ take 10 y
Producing output:

    [1,0,1,0,1,0,1,0,1,0]

There are no comments on this comment yet.