Wraps iterator to allow for seeking backwards and forwards. An internal cache of length maxLength is kept and
progressively added to when iterating forwards.
Seeks forward/backwards to the index i. i may be any positive or negative number. Negative numbers seek
starting from the end of the internal cache (e.g. -1 is the last element).
Wraps
iterator
to allow for seeking backwards and forwards. An internal cache of lengthmaxLength
is kept and progressively added to when iterating forwards.