Add support for negative indices for .[]; fix #462
Signed-off-by: Nicolas Williams <nico@cryptonector.com>
This commit is contained in:
1 parent
7d3a44a1e2
commit
d0ca11d665
3 files changed
+17
-1
No files matched your search
@@ -202,6 +202,10 @@ null
|
||||
2
|
||||
3
|
||||
|
||||
.[-2]
|
||||
[1,2,3]
|
||||
2
|
||||
|
||||
[range(0;10)]
|
||||
null
|
||||
[0,1,2,3,4,5,6,7,8,9]
|
||||
|
||||
Reference in new issue
Block a user