Construct an iterator that generates the Cartesian product of a list and two sets.
Print the elements
1: 1 a c
2: 2 a c
3: 2 a c
4: 2 b c
5: 2 b c
6: 1 b c
7: 1 b d
8: 2 b d
9: 2 b d
10: 2 a d
11: 2 a d
12: 1 a d
13: 1 a e
14: 2 a e
15: 2 a e
16: 2 b e
17: 2 b e
18: 1 b e
| |
Generate the entire sequence.
Compute the number of iterations.
Return the element with rank equal to 4.
Copy the iterator, but start with rank equal to 4.