How to write this in coffeescript?
f = (function(){ // something })();
Thanks for any tips :)
You can also combine the do keyword with default function parameters to seed recursive "self-initiating functions" with an initial value. Example:
do
do recursivelyPrint = (a=0) -> console.log a setTimeout (-> recursivelyPrint a + 1), 1000