Skip to content

Update interop-cheatsheet.mdx #999

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 2 commits into from
Apr 8, 2025

Conversation

shuklatushar226
Copy link
Contributor

had a small mistake: the return type of filter's callback should be bool, not 'b.

Copy link

vercel bot commented Apr 8, 2025

@shuklatushar12219829 is attempting to deploy a commit to the ReScript Association Team on Vercel.

A member of the Team first needs to authorize it.

Copy link
Contributor Author

@shuklatushar226 shuklatushar226 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated the type signature of the filter function:
Changed the second parameter's return type from 'a => 'b to 'a => bool
This ensures filter correctly takes a predicate function that returns a boolean,
allowing it to return only those elements of the array that satisfy the condition.

Copy link
Member

@fhammerschmidt fhammerschmidt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@fhammerschmidt fhammerschmidt merged commit 0fd12ad into rescript-lang:master Apr 8, 2025
1 of 2 checks passed
@shuklatushar226 shuklatushar226 deleted the patch-1 branch April 8, 2025 07:08
@shuklatushar226 shuklatushar226 restored the patch-1 branch April 8, 2025 07:08
@shuklatushar226 shuklatushar226 deleted the patch-1 branch April 8, 2025 07:08
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