PageRenderTime 51ms CodeModel.GetById 46ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/documentation/coffee/while.coffee

http://github.com/jashkenas/coffee-script
CoffeeScript | 10 lines | 7 code | 1 blank | 2 comment | 3 complexity | 82eb300e9866995098a8124682b94a52 MD5 | raw file
 1# Econ 101
 2if this.studyingEconomics
 3  buy()  while supply > demand
 4  sell() until supply > demand
 5
 6# Nursery Rhyme
 7num = 6
 8lyrics = while num -= 1
 9  "#{num} little monkeys, jumping on the bed.
10    One fell out and bumped his head."