swift-async-algorithms icon indicating copy to clipboard operation
swift-async-algorithms copied to clipboard

`Sequence`-based implementation of combining algorithms in addition to variadic ones

Open MaxDesiatov opened this issue 3 years ago • 2 comments

Existing implementations of combineLatest , zip , merge are great when the total number of sequences is known at compile time (2 or 3 without variadic generics). In some scenarios, these sequences have same element types, but the total number of sequences is computed at run time. Existing implementations won't work here, and I think the library would benefit from implementations that take a Sequence (or some other container protocol) of AsyncSequences that have the same element type to cover these use cases.

MaxDesiatov avatar Nov 02 '22 16:11 MaxDesiatov

Thanks for opening this @MaxDesiatov. This is something we can look into after the 1.0 release!

FranzBusch avatar Nov 02 '22 16:11 FranzBusch