Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Corecursion. Parent comment
Yyyyep just tested it:
def fibs(n, tabs=0): if n < 2: print "\t"*tabs + "1" return 1 print "\t"*tabs+"fibs %d"%n a = fibs(n-1, tabs+1) b = fibs(n-2, tabs+1) print "\t"*tabs+str(a+b) return a+b
There are no comments on this comment yet.
Yyyyep just tested it:
Took exactly 71 seconds to write. I probably spent 3 minutes on it by hand getting all the spaces right.