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:
		@@ -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
 | 
			
		||||
#
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user