1
0
Fork 0
mirror of https://github.com/jashkenas/coffeescript.git synced 2022-11-09 12:23:24 -05:00
jashkenas--coffeescript/test/fixtures/execution/test_range_comprehension.coffee

8 lines
No EOL
156 B
CoffeeScript

nums: i * 3 for i in [1..3].
negs: x for x in [-20..-10].
negs: negs[0..2]
result: nums.concat(negs).join(', ')
print(result is '3, 6, 9, -20, -19, -18')