Skip to content

Conversation

@phausler
Copy link
Member

Zip can utilize task groups; which reduce the burden of task cancellation slightly from the alternate parity versions (like combining the latest value into a tuple instead of awaiting all members for a tuple). This implementation rests heavily on the inout method for iterating which transacts upon writing back to optionals to complete the zip tuple. Other approaches are totally value ways (like for example making a state machine tuple transition from each satisfaction to another) however the optional based approach leans heavier onto the built-in type safety of Swift's type resolution.

@phausler phausler merged commit 73b29b9 into main Jan 21, 2022
@phausler phausler deleted the pr/zip branch January 21, 2022 19:37
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.

3 participants