mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-01-14 09:17:55 -05:00
got negative ranges working with (much, much) uglier compiled code
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
nums: i * 3 for i in [1..3].
|
||||
|
||||
result: nums.join(', ')
|
||||
negs: x for x in [-20..-10].
|
||||
negs: negs[0..2]
|
||||
|
||||
print(result is '3, 6, 9')
|
||||
result: nums.concat(negs).join(', ')
|
||||
|
||||
print(result is '3, 6, 9, -20, -19, -18')
|
||||
Reference in New Issue
Block a user