Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Once you go functional, you can never go back. Parent comment
Here's one that does:
(define (fib-tco n) (let loop ((x 0) (y 1) (num n)) (if (zero? n) x (loop y (+ x y) (- num 1)))))
Also, what's with the dangling parentheses?
There are no comments on this comment yet.
Here's one that does:
Try getting the 1000th Fibonacci number which each of these.Also, what's with the dangling parentheses?