mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-05-03 03:00:14 -04:00
adding a test for expressions in range comprehensions
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
nums: i * 3 for i in [1..3]
|
||||
|
||||
negs: x for x in [-20..-10]
|
||||
negs: x for x in [-20..-5*2]
|
||||
negs: negs[0..2]
|
||||
|
||||
result: nums.concat(negs).join(', ')
|
||||
|
||||
Reference in New Issue
Block a user