0
To avoid the XY problem, here is an example of what I need. Given the sorted integer input array
[1 1 1 2 2 3], I would like to produce the following slices, together with their index:
0: slice(0,3)
1: slice(3,5)
2: slice(5,6)
(Both the index and the slice will be used to index/slice into s...