got postfix if and unless onboard

This commit is contained in:
Jeremy Ashkenas
2009-12-15 08:53:21 -05:00
parent 16f80ed963
commit 5dd295bd08
5 changed files with 643 additions and 584 deletions

View File

@@ -46,6 +46,10 @@ else
eldest: if 25 > 21 then liz else marge.
decoration: medal_of_honor if war_hero
go_to_sleep() unless coffee
# Returning early:
race: =>
run()
@@ -84,7 +88,7 @@ while supply > demand then buy().
!!true
# For loops.
foods: ['toast', 'wine', 'cheese']
print(item.capitalize()) for item in foods.
drink(item) for item in foods if item is 'wine'.
# foods: ['toast', 'wine', 'cheese']
# print(item.capitalize()) for item in foods.
#
# drink(item) for item in foods if item is 'wine'.