renaming suggestions
lue-bird opened this issue Β· comments
lue commented
To improve consistency
sliceUntil
βtake
- π like
List.drop
for natural indexes - π unlike
List.drop
for negative indexes
- π like
sliceFrom
βdrop
- π like
List.take
for natural indexes - π unlike
List.take
for negative indexes
- π like
update
βupdateAt
- π like
Array.Extra.removeAt
,Array.Extra.insertAt
,Array.Extra.splitAt
- π unlike
Array.get
,Array.set
- π like
lue commented
Hmm... seems not worth a breaking change.
Maybe if default behavior on negative indexes for sliceFrom
/sliceUntil
changes
from counting from the back to behavior of all other operations including splitAt
, defaulting to empty or all.
Should we open a new issue for this?