By shriphani on April 30, 2013
Recently, I was in a situation where avoiding a recursive tail-call would have been unavoidable (essentially, I was forced to do a Thread.sleep() call). The fine folks at #clojure pointed me to recur and it was exactly what the doctor ordered. No stack consumption and ability to make tail calls. FWIW, this was the script: I […]
By shriphani on March 6, 2012
This entire page is full of win (and beautiful Haskell code). I found it when I was trying to cheat on a SPOJ problem.