Skip to content
New issue

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

Simplify is empty #437

Merged
merged 2 commits into from May 6, 2020
Merged

Simplify is empty #437

merged 2 commits into from May 6, 2020

Conversation

phimuemue
Copy link
Member

Taking inspiration from #303 (comment), I think we could exploit that pop/pop_front return Option.

Note: https://godbolt.org/z/WVTD7m seems to indicate that the compiler is doing a good job at optimizing either version.

@jswrenn
Copy link
Member

jswrenn commented May 6, 2020

Oh, sweet! Thanks!

bors r+


@phimuemue, do you have any objections to adding you as a member to the itertools repo? Your code reviews are absolutely invaluable, and they should carry the same weight as reviews from from bluss or me. I think it'd be appropriate if you had the [member] badge next to your username when you comment.

@bors
Copy link
Contributor

bors bot commented May 6, 2020

Build succeeded:

@bors bors bot merged commit 398fd38 into rust-itertools:master May 6, 2020
@phimuemue
Copy link
Member Author

@jswrenn Thank you for the offer. If it's still available, I'd gladly accept it.

@phimuemue phimuemue deleted the simpl_is_empty branch May 13, 2020 19:33
@jswrenn jswrenn changed the title Simpl is empty Simplify is empty Sep 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants