Delete negative indices in array (fix #954)

This commit is contained in:
David Tolnay committed 2015-09-21 20:33:06 -07:00
1 parent 154d0ee4a8
commit 58f082d74f
2 files changed
+31 -10

No files matched your search

+4
View File
@@ -784,6 +784,10 @@ null
{"foo": [1,4], "bar": [1]}
{"bar": [1]}
del(.[1], .[-6], .[2], .[-3:9])
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
[0, 3, 5, 6, 9]
#
# Assignment
#