apple / apple/swift-async-algorithms

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

Open
#226 2 comments 10 reactions 0 assignees View on GitHub
enhancement v1.1
Dominant language
Swift
Stars
3.7k
Forks
226
Avg merge
10d 3h
Merged PRs (30d)
1

Description

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 `AsyncSequence`s that have the same element type to cover these use cases.

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the existing combineLatest, zip, and merge implementations and their variadic APIs. Define how Sequence-based inputs of same-element-type AsyncSequences should behave, then verify that the resulting APIs cover runtime-sized collections of sequences and match the existing algorithm semantics.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.