Files
coffeescript/test/fixtures/execution/test_array_comprehension.coffee
2009-12-28 23:08:02 -05:00

8 lines
196 B
CoffeeScript

nums: n * n for n in [1, 2, 3] if n % 2 isnt 0.
results: n * 2 for n in nums.
# next: for n in [1, 2, 3] if n % 2 isnt 0
# print('hi') if false
# n * n * 2
print(results.join(',') is '2,18')