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

Add try_unzip #1

Merged
merged 2 commits into from
Dec 23, 2024
Merged

Add try_unzip #1

merged 2 commits into from
Dec 23, 2024

Conversation

QDoussot
Copy link
Contributor

Add try_unzip

Basically a fallible version of std::iter::Iterator::unzip

  • Converts an iterator of Result of pairs into a Result of pair of containers.
  • Stops and return first error encountered if any (short-circuiting)

Checks

  • doctest ✅
  • sanity test ✅
  • cargo check
  • cargo test
  • cargo clippy

@carlsverre
Copy link
Owner

This looks great! Thanks for the contribution.

@carlsverre carlsverre merged commit b25139a into carlsverre:main Dec 23, 2024
1 check passed
@QDoussot
Copy link
Contributor Author

Nice, you're welcome :)

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.

2 participants