5 ms·
When you see a two-liner of for k, i in keywords search k, defer out[i] Do you really get lost or confused? Are you actually complaining about a proble
by tsuraan 15y ago
When you see a two-liner of
for k, i in keywords
search k, defer out[i]
Do you really get lost or confused? Are you actually complaining about a problem, or just a violation of your favorite style guide? Personally, I'm looking for what makes IcedCoffeeScript unique; all else is just cruft, so keeping that terse is just fine with me.
- nailer 15y agoYes, I lose a few milliseconds. You'll notice your example had to include the loop for 'search k' to have any meaning, so I suspect you did too.
- kstenerud 15y agoI'm still confused. Are those key-value pairs? What is "i" actually doing?
- bricestacey 15y agok is the value, i is the index.