mo' expression examples

This commit is contained in:
Jeremy Ashkenas 2010-01-03 19:08:41 -05:00
parent ecdb47107b
commit 32cd15f038
1 changed files with 7 additions and 5 deletions

View File

@ -4,11 +4,13 @@ result: while sunny?
go_outside() go_outside()
print(3 + try print(3 + try
nonexistent.no_way nonexistent.no_way
catch error catch error
print(error) print(error)
3 3
) )
func: x => func: x =>
return throw x return throw x
print(x * x for x in [1..100])