Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Array.findLast and other missing functions#126

Open
jmagaram wants to merge 12 commits intorescript-lang:mainrescript-lang/rescript-core:mainfrom
jmagaram:ArrayFindLastjmagaram/rescript-core:ArrayFindLastCopy head branch name to clipboard
Open

Array.findLast and other missing functions#126
jmagaram wants to merge 12 commits intorescript-lang:mainrescript-lang/rescript-core:mainfrom
jmagaram:ArrayFindLastjmagaram/rescript-core:ArrayFindLastCopy head branch name to clipboard

Conversation

@jmagaram
Copy link
Contributor

Some missing functions from the Array module. In particular the findLast variants.

indexOfFromOpt: add code and docs
lastIndexOf : docs, tests
lastIndexOfOpt : tests
lastIndexOfFrom : docs, tests
findLast : code, docs, tests
findLastIndex : code, docs, tests
findLastIndexOpt : code, docs, tests
findLastIndexWithIndex : code, docs, tests
findLastIndexWithIndexOpt : code, docs

@jmagaram
Copy link
Contributor Author

I have no idea why the tests aren't working. It works for me.

@glennsl
Copy link
Contributor

glennsl commented Mar 29, 2023

It fails because the function does not exist in Node.js 16. Node.js 16 is included in the CI matrix because it's a Long Term Support release. It will stop being supported in September, at which point the matrix should be updated and the checks should pass.

@cvoight
Copy link

cvoight commented Sep 28, 2023

Now that Node.js 16 has reached end-of-life, will this be merged for the next release? And thanks, Justin; I needed findLastIndex!

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.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.