31. implement Push<T, I>
Share
- accepted / - tried
Implement Push<T, I>
to return a new type by pushing new type into tuple type.
type A = Push<[1,2,3], 4> // [2,3]type B = Push<[1], 2> // [1, 2]type C = Push<[], string> // [string]
- accepted / - tried
Implement Push<T, I>
to return a new type by pushing new type into tuple type.
type A = Push<[1,2,3], 4> // [2,3]type B = Push<[1], 2> // [1, 2]type C = Push<[], string> // [string]