Kirill A. Korinsky
Kirill A. Korinsky
I hope that I've added it at all sorted Sets now.
Added dummy implementation to empty sets
@vigna any thoughts?
> Sorry, I somehow lost track of this. The problem I see is that it does not make any sense at the interface level—iterators do not necessarily come from sorted...
I see your point and I agree with it, but I haven't found any nice way to inject that `jump`. Introducing a conception of `JumpingIterator` seems like an overkill.
@vigna I'm willing to update this PR to make it easy to merge. To do it, may I ask some guidlines? Thanks!
Let me start from the side note. I do have and this was made to make one services quite happy :) Long story short: it decreased response time about 2x...
@vigna do you prefer one more commit with rename and new iterator, or force push with rebased commit?
here it is. I've introduced `MovableBidirectionalIterator` which contains two functions: `move(fromElement)` and `rewind()`. It was cleaner that I've expected to be honest.
I agree about moving to the end, but I was blocked because I can’t find the right naming :) `begin()` and `end()` seems like a position and not a verb.