mirror of
https://github.com/jashkenas/coffeescript.git
synced 2022-11-09 12:23:24 -05:00
10 lines
315 B
CoffeeScript
10 lines
315 B
CoffeeScript
# Eat lunch.
|
|
eat food for food in ['toast', 'cheese', 'wine']
|
|
|
|
# Fine five course dining.
|
|
courses = ['greens', 'caviar', 'truffles', 'roast', 'cake']
|
|
menu i + 1, dish for dish, i in courses
|
|
|
|
# Health conscious meal.
|
|
foods = ['broccoli', 'spinach', 'chocolate']
|
|
eat food for food in foods when food isnt 'chocolate'
|