Skip to content

Latest commit

 

History

History
14 lines (8 loc) · 1.44 KB

File metadata and controls

14 lines (8 loc) · 1.44 KB

Reverse 中等 #tuple

by jiangshan @jiangshanmeta

接受挑战    English

实现类型版本的数组反转 Array.reverse

例如:

type a = Reverse<['a', 'b']> // ['b', 'a']
type b = Reverse<['a', 'b', 'c']> // ['c', 'b', 'a']

返回首页 分享你的解答 查看解答