Index variable (_i) in for loops?
问题 Take a look at this simple code: eat = (x) -> console.log "nom", x # dog only eats every second cat feast = (cats) -> eat cat for cat in cats when _i % 2 == 0 feast ["tabby cat" "siamese cat" "norwegian forest cat" "feral cat" "american bobtail" "manx"] $ coffee a.coffee nom tabby cat nom norwegian forest cat nom american bobtail It seems the _i variable is the current index. Is this a feature, bug, or NaN? I haven't heard anyone else talking about this, so I wonder if there's some reason I