1
0
Fork 0
mirror of https://github.com/jashkenas/coffeescript.git synced 2022-11-09 12:23:24 -05:00
jashkenas--coffeescript/documentation/examples/while.coffee

11 lines
233 B
CoffeeScript
Raw Normal View History

# Econ 101
if this.studyingEconomics
2010-05-15 01:18:05 -04:00
buy() while supply > demand
sell() until supply > demand
2009-12-21 11:41:45 -05:00
# Nursery Rhyme
2010-07-29 00:51:35 -04:00
num = 6
lyrics = while num -= 1
"#{num} little monkeys, jumping on the bed.
2010-01-13 23:24:45 -05:00
One fell out and bumped his head."