Skip to content

Implement transform.distribute() - #104

Merged
Smoren merged 2 commits into
Smoren:devfrom
Guflly:feature/issue-74-distribute
Aug 5, 2026
Merged

Implement transform.distribute()#104
Smoren merged 2 commits into
Smoren:devfrom
Guflly:feature/issue-74-distribute

Conversation

@Guflly

@Guflly Guflly commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Adds the sync and async distribute transforms plus Stream and AsyncStream methods. The result always contains n round-robin buckets, including empty buckets when needed.

Includes tests and README examples.

Tests: npm test -- --runInBand; npm run build

Fixes #74

@Smoren

Smoren commented Aug 5, 2026

Copy link
Copy Markdown
Owner

Hi @Guflly! Thanks for the PR! Could you please add tests for all iterable containers? We should cover them all (Array, Set, Map, String, Generator, Iterable, Iterator, AsyncIterable, AsyncIterator) to match the test pattern we use for the other functions in this library. Thanks!

@Guflly

Guflly commented Aug 5, 2026

Copy link
Copy Markdown
Contributor Author

Added the missing container coverage for distributeAsync. Array, Set, Map, String, Generator, Iterable, Iterator, AsyncIterable, and AsyncIterator are now covered.

Tests: 39 focused and 28,779 full passed. Coverage is 100%, and both builds pass.

@Smoren
Smoren merged commit 7845bce into Smoren:dev Aug 5, 2026
11 checks passed
@Smoren

Smoren commented Aug 5, 2026

Copy link
Copy Markdown
Owner

Hi @Guflly! Thank you for expanding the test coverage to include all the iterable types as well. I have merged your PR.

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