Skip to content
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

Add Array.flatMapWithIndex #199

Merged
merged 2 commits into from
Mar 1, 2024
Merged

Conversation

mediremi
Copy link
Contributor

@mediremi mediremi commented Mar 1, 2024

Array.prototype.flatMap passes the current element's index to its callback argument but we do not have a Array.flatMapWithIndex function.

@zth
Copy link
Collaborator

zth commented Mar 1, 2024

Seems reasonable, thanks! Would you add a changelog as well?

@mediremi
Copy link
Contributor Author

mediremi commented Mar 1, 2024

@zth I've added a changelog entry 👍

@zth zth merged commit 33c82a9 into rescript-lang:main Mar 1, 2024
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