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

Align List api with other modules #195

Merged
merged 3 commits into from
Feb 23, 2024
Merged

Align List api with other modules #195

merged 3 commits into from
Feb 23, 2024

Conversation

cknitt
Copy link
Member

@cknitt cknitt commented Feb 17, 2024

Align List api with Array and other modules:

  • List.make: named argument length
  • List.makeBy -> List.fromInitializer, named argument length
  • List.flatten -> List.flat
  • List.mapWithIndex: callback argument order
  • List.forEachWithIndex: callback argument order, callback returns unit
  • List.getBy -> List.find

@zth
Copy link
Collaborator

zth commented Feb 20, 2024

@cknitt changelog, and what do you think about adding this to the migrations script as well, if that makes sense?

@zth zth merged commit 5e9abe4 into main Feb 23, 2024
5 of 6 checks passed
@zth zth deleted the list-api branch February 23, 2024 07:56
illusionalsagacity pushed a commit to illusionalsagacity/rescript-core that referenced this pull request Jun 19, 2024
* Align List api with other modules

* Changelog

---------

Co-authored-by: Gabriel Nordeborn <[email protected]>
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