mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-01-14 09:17:55 -05:00
adding splice literals, with tests
This commit is contained in:
5
test/fixtures/execution/test_splices.coffee
vendored
Normal file
5
test/fixtures/execution/test_splices.coffee
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
array: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
|
||||
|
||||
array[5..10]: [0, 0, 0]
|
||||
|
||||
print(array.join(' ') is '0 1 2 3 4 0 0 0')
|
||||
Reference in New Issue
Block a user