Use a range of lists to specify the ranges for the counters.
>
|
|
>
|
|
1: 1 3
2: 2 3
3: 3 3
4: 4 3
5: 1 2
6: 2 2
7: 3 2
8: 4 2
9: 1 1
10: 2 1
11: 3 1
12: 4 1
| |
Compute the number of iterations.
Return the element with rank equal to 4.
Copy the iterator, but start with rank equal to 4.
>
|
|
4: 4 3
5: 1 2
6: 2 2
7: 3 2
8: 4 2
9: 1 1
10: 2 1
11: 3 1
12: 4 1
| |
Use a list of ranges to specify the ranges.
>
|
|
>
|
|
1: 1 3
2: 2 3
3: 3 3
4: 4 3
5: 1 2
6: 2 2
7: 3 2
8: 4 2
9: 1 1
10: 2 1
11: 3 1
12: 4 1
| |