We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It seems that ink_storage::Vec is missing some useful methods, such as binary search. Is such a feature wanted?
The text was updated successfully, but these errors were encountered:
Having binary_search seems reasonable to me. Feel free to open a PR
binary_search
Sorry, something went wrong.
I would love to see that! Although we really need to make sure that its implementation does not waste gas by accessing unnecessary storage slots.
I think that for the search we will need to access storage for the comparison, but no more than that.
I'll get to writing a PR. It think I should be able to reuse most of core's implementation?
core
collections::Vec
Closed by #836.
No branches or pull requests
It seems that ink_storage::Vec is missing some useful methods, such as binary search. Is such a feature wanted?
The text was updated successfully, but these errors were encountered: