Skip to content

stream: add asIndexedPairs#41681

Closed
benjamingr wants to merge 3 commits intonodejs:masterfrom
benjamingr:add-stream-asIndexedPairs
Closed

stream: add asIndexedPairs#41681
benjamingr wants to merge 3 commits intonodejs:masterfrom
benjamingr:add-stream-asIndexedPairs

Conversation

@benjamingr
Copy link
Member

Adds the next (and second to last since we already have .from!) iterator helper from iterator helpers (ref: https://github.com/tc39/proposal-iterator-helpers#asindexedpairs )

I am not basing this on reduce and I'll just deal with merge conflicts. I took Antoine's advice and wrote the tests in .mjs and it is indeed a lot neater although admittedly this is one of the simpler ones.

After this one (and .find which I want to think a bit more about since we may want to support concurrency I want to focus on gathering feedback and iterating on the docs and on the tests (we still need a lot more coverage).

cc @aduh95 @ronag @mcollina @Mesteery @vweevers @VoltrexMaster @nodejs/streams

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-ci PRs that need a full CI run. stream Issues and PRs related to the stream subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants