Skip to content

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
Member

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
@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