jashkenas--coffeescript/documentation/coffee/while.coffee

11 lines
241 B
CoffeeScript

# Econ 101
if this.studying_economics
while supply > demand then buy()
while supply < demand then sell()
# Nursery Rhyme
num: 6
lyrics: while num -= 1
num + " little monkeys, jumping on the bed.
One fell out and bumped his head."