Skip to content
This repository has been archived by the owner on Jan 18, 2019. It is now read-only.

Commit

Permalink
Remove compile to example for comprehensions
Browse files Browse the repository at this point in the history
  • Loading branch information
skalnik committed Jun 8, 2011
1 parent dd702ff commit 0848718
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions coffeescript/features.md
Expand Up @@ -177,22 +177,9 @@
'cheese',
'wine']

##Compiles to##

@@@javascript
var food, _i, _len, _ref;
_ref = ['toast', 'cheese', 'wine'];
for(_i = 0, _len = _ref.length; _i < _len;
_i++) {
food = _ref[_i];
eat(food);
}

!SLIDE

@@@javascript
shortNames = (name for name in list
when name.length < 5)

evens = (x for x in [0..10] by 2)

!SLIDE bullets incremental
Expand Down

0 comments on commit 0848718

Please sign in to comment.