some combinators take or return a mutable tuple: String.split returns [string, ...string[]]
some combinators take or return a readonly tuple: ReadonlyArray.lastNonEmpty takes readonly [A, ...A[]]
I understand how this drift happened, but it's uncomfortable to work with.
some combinators take or return a mutable tuple:
String.split
returns[string, ...string[]]
some combinators take or return a readonly tuple:ReadonlyArray.lastNonEmpty
takesreadonly [A, ...A[]]
I understand how this drift happened, but it's uncomfortable to work with.