Skip to content

Add iterator and asyncIterator forEach helpers #175

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Feb 23, 2024
Merged

Add iterator and asyncIterator forEach helpers #175

merged 3 commits into from
Feb 23, 2024

Conversation

zth
Copy link
Collaborator

@zth zth commented Jan 4, 2024

These are convenience functions, intended to help since we don't have native for const of syntax support, which is how you'd normally deal with this in an idiomatic way in JS.

Closes #38.

@zth zth force-pushed the iterator-foreach branch from 3c9ccf2 to 6248fb0 Compare February 23, 2024 08:07
@zth zth merged commit 17a5d5f into main Feb 23, 2024
@zth zth deleted the iterator-foreach branch February 23, 2024 08:18
illusionalsagacity pushed a commit to illusionalsagacity/rescript-core that referenced this pull request Jun 19, 2024
* add iterator and asyncIterator forEach helpers

* changelog + fix docstrings

* fix docstring errors
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.

[Proposal] Add Iterator.forEach and AsyncIterator.forEach
1 participant