ARSCAN
Since 1.1.0Arrays
Syntax
ARSCAN key start end [LIMIT limit]Returns the filled slots from start to end, skipping empty ones, as [index, value] pairs; in reverse with start greater than end. LIMIT limit returns at most that many.
Examples
> ARSCAN a 0 10
1) 1) (integer) 0
2) "x"
2) 1) (integer) 1
2) "y"
3) 1) (integer) 2
2) "z"
4) 1) (integer) 5
2) "w"
> ARSCAN a 10 0 LIMIT 2
1) 1) (integer) 5
2) "w"
2) 1) (integer) 2
2) "z"