26. 实现ReverseTuple<T>
分享给更多人
-通过 / -执行
Implement ReverseTuple<T>
to reverse a tuple type.
type A = ReverseTuple<[string, number, boolean]> // [boolean, number, string]type B = ReverseTuple<[1,2,3]> // [3,2,1]type C = ReverseTuple<[]> // []
-通过 / -执行
Implement ReverseTuple<T>
to reverse a tuple type.
type A = ReverseTuple<[string, number, boolean]> // [boolean, number, string]type B = ReverseTuple<[1,2,3]> // [3,2,1]type C = ReverseTuple<[]> // []