mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-18 11:31:20 -05:00
added array comprehensions over ranges
This commit is contained in:
5
test/fixtures/execution/test_range_comprehension.coffee
vendored
Normal file
5
test/fixtures/execution/test_range_comprehension.coffee
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
nums: i * 3 for i in [1..3].
|
||||
|
||||
result: nums.join(', ')
|
||||
|
||||
print(result is '3, 6, 9')
|
||||
Reference in New Issue
Block a user