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
I was experimenting with using a RedBlackTree as a priority queue and ended up with:
RedBlackTree
let next_work = queue.first(); if let Some(k) = next_work { queue.remove_mut(k); }
It would be nice to have a pop_first that removed the first item and returned it in one.
pop_first
The text was updated successfully, but these errors were encountered:
Sounds good. If you want to take it and do a PR go for it :)
Sorry, something went wrong.
looks like std calls somthing similar take.
take
As to doing a PR, I do not know the internals of rpds. I don't think I will have the spare cycles to figure it out.
rpds
No branches or pull requests
I was experimenting with using a
RedBlackTree
as a priority queue and ended up with:It would be nice to have a
pop_first
that removed the first item and returned it in one.The text was updated successfully, but these errors were encountered: