mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-01-14 09:17:55 -05:00
adding the 'in' operator
This commit is contained in:
@@ -19,3 +19,7 @@ evens: for num in [1, 2, 3, 4, 5, 6] when num % 2 is 0
|
||||
|
||||
print(evens.join(', ') is '4, 6, 8')
|
||||
|
||||
# Make sure that the "in" operator still works.
|
||||
|
||||
print(2 in evens)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user