Files
coffeescript/documentation/coffee/array_comprehensions.coffee
2009-12-26 20:46:31 -08:00

5 lines
146 B
CoffeeScript

# Eat lunch.
lunch: food.eat() for food in ['toast', 'cheese', 'wine'].
# Zebra-stripe a table.
highlight(row) for row, i in table if i % 2 is 0.