-
Notifications
You must be signed in to change notification settings - Fork 501
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
impl FromParallelIterator for tuple pairs #802
Conversation
It's a composition. |
I see. |
I finally got around to adding doc-examples for this. |
I think this will not get accepted in the stdlib, right? |
I expect not, but I haven't even proposed it yet. I think given how And I do think it's still justified here, because it's otherwise really hard to collect multiple things in parallel. With serial |
That makes sense. |
I'd be r+ on landing this. |
bors r=nikomatsakis |
Like #604 for
ParallelExtend
, implementingFromParallelIterator
for tuple pairs opens up new possibilities for nestingcollect
. The possibility of short-circuiting intoResult<(T, U), E>
for #801 is particularly motivating.FromParallelIterator<(A, B)> for (FromA, FromB)
works likeunzip
FromParallelIterator<Either<L, R>> for (A, B)
works likepartition_map