Hi! I have the following problem:
- I have a VecDeque
- Given an element at an index, I want to iterate to the beginning of the VecDeque from that, and also to the end
So basically I want to get two iterators from the VecDeque, such that given it contains these elements [1, 2, 3, 4, 5, 6, 7], and the start index 3 (element "4"), I need two iterators that produce [3, 2, 1] and [5, 6, 7] respectively.
How would I go about doing that?