self-compiling switch statements

This commit is contained in:
Jeremy Ashkenas
2010-02-12 16:23:52 -05:00
parent 156a0b13d9
commit 1a6194e9f0
6 changed files with 17 additions and 13 deletions

View File

@@ -16,6 +16,7 @@ result: switch num
puts result
func: (num) ->
switch num
when 2, 4, 6