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 find myself doing this a lot:
match foo.peek() { Some(head) => { foo = foo.pop().unwrap(); } }
As far as I can see, there isn't a single API for popping an item and returning it. Would it make sense to add one?
(I'm sure you can think of a better name if you do add this.)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I find myself doing this a lot:
As far as I can see, there isn't a single API for popping an item and returning it. Would it make sense to add one?
(I'm sure you can think of a better name if you do add this.)
The text was updated successfully, but these errors were encountered: