Effect-TS / data

Custom built data types leveraged by the Effect ecosystem
https://effect.website
MIT License
184 stars 22 forks source link

inconsistent typing for tuples (or nonempty arrays) #497

Open datner opened 1 year ago

datner commented 1 year ago

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.