RangeTree icon indicating copy to clipboard operation
RangeTree copied to clipboard

Return range-value pair on querry

Open lamest opened this issue 5 years ago • 3 comments

Why isn't it returns the range itself on querry, only values? its like reducing functionality for no good reason

lamest avatar Mar 24 '21 01:03 lamest

or, even better, we can return subtree

lamest avatar Mar 24 '21 04:03 lamest

Thanks for your PR. I looked at it, but I can't see why this would be a good idea to return something that you have inserted into the method. Additionally, this interface change causes lots of additional statements (e.g., .Value, .Select(...)) being required when using it as well as being incompatible with previous versions, requiring all users to change their code.

What exactly is your requirement? Maybe there is a better solution with the existing interface, e.g. use A as key and Pair<A,B> as value?

apacha avatar Mar 24 '21 08:03 apacha

As there is no new information, I'm closing this ticket and the PR

apacha avatar Apr 07 '21 15:04 apacha