Skip to content

List API is inconsistent with other modules #192

Closed
@cknitt

Description

@cknitt

This is for historical reasons (the List module is copied from Belt).

For example:

  • List: let forEach: (t<'a>, 'a => 'b) => unit
  • Others: let forEach: (t<'a>, 'a => unit) => unit

or

  • List: let mapWithIndex: (t<'a>, (int, 'a) => 'b) => t<'b>
  • Others: let mapWithIndex: (t<'a>, ('a, int) => 'b) => t<'b>

or

  • List: getBy
  • Others: find

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions