adding splice literals, with tests

This commit is contained in:
Jeremy Ashkenas
2010-01-02 00:20:24 -05:00
parent 38520bfece
commit 7ee5be674d
2 changed files with 19 additions and 2 deletions

View 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')