KiaraGrouwstra / typical

playground for type-level primitives in TypeScript
MIT License
173 stars 5 forks source link

merge Array/List #10

Open KiaraGrouwstra opened 6 years ago

KiaraGrouwstra commented 6 years ago

Currently I have duplicate implementations for a number of operations, based on whether the length is deemed known (list) or not (array).

Tuples now have known length in TS, so these list implementations should get merged back into the array ones -- won't need to fumble around with manually updating length anymore. One complication here is tuple types cannot be manipulated yet until #5453. So sorta waiting it out on PRs for that getting in.