Created
May 31, 2011 04:16
-
-
Save yoppi/999847 to your computer and use it in GitHub Desktop.
List Comprehension with CoffeeScript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# like list comprehension | |
list = (i for i in [0..10] when i % 2 is 0) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment