mirror of
https://github.com/jashkenas/coffeescript.git
synced 2022-11-09 12:23:24 -05:00
7 lines
No EOL
209 B
CoffeeScript
7 lines
No EOL
209 B
CoffeeScript
# Eat lunch.
|
|
lunch: eat(food) for food in ['toast', 'cheese', 'wine']
|
|
|
|
# Naive collision detection.
|
|
for roid in asteroids
|
|
for roid2 in asteroids when roid isnt roid2
|
|
roid.explode() if roid.overlaps roid2 |