Open
Description
Some remaining cleanup in the standard library: Functions with xxxToEnd
should be deprecated, a single binding with optional parameters is enough.
For example:
@send external slice: (array<'a>, ~start: int, ~end: int) => array<'a> = "slice"
@send external sliceToEnd: (array<'a>, ~start: int) => array<'a> = "slice"
can be just one slice
function with ~end
being optional. sliceToEnd
can be deprecated.
@send external fillAll: (array<'a>, 'a) => unit = "fill"
@send external fillToEnd: (array<'a>, 'a, ~start: int) => unit = "fill"
@send external fill: (array<'a>, 'a, ~start: int, ~end: int) => unit = "fill"
can be just one fill
function with both ~start
and ~end
optional.
Metadata
Metadata
Assignees
Labels
No labels