Sometimes you need to access i from a function/event inside a loop, for those times wrapping the loop body in a self-invoking function that takes i as a parameter will do the trick:
do (i) ->
Sweet. Ran into this many times myself, was so happy to learn this trick from Koen too. :-)
Here's another handy "do" trick:
You do(n't) say!