Cycle through n-dimensional array indices
array_counter(count, dims)
The counter (0-based)
The sizes of the dimension
An integer vector of the same length as dim
, with 0-based indices
Cycles through all indices of an n-dimensional array. The first dimension moves fastest. The counter is 0-based and the output is 0-based as well.