1
0
mirror of https://github.com/stedolan/jq.git synced 2024-05-11 05:55:39 +00:00

Add range(init;upto;by) (fix #317)

This commit is contained in:
Nicolas Williams
2014-07-02 21:22:53 -05:00
parent 3a647d3e47
commit ff9a61ead2
3 changed files with 41 additions and 4 deletions

View File

@@ -202,6 +202,22 @@ null
2
3
[range(0;10)]
null
[0,1,2,3,4,5,6,7,8,9]
[range(0;10;3)]
null
[0,3,6,9]
[range(0;10;-1)]
null
[]
[range(0;-5;-1)]
null
[0,-1,-2,-3,-4]
#
# Slices
#