Delete negative indices in array (fix #954)
This commit is contained in:
1 parent
154d0ee4a8
commit
58f082d74f
2 files changed
+31
-10
No files matched your search
@@ -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
|
||||
#
|
||||
|
||||
Reference in new issue
Block a user