32. implement RepeatString<T, C>
分享给更多人
-通过 / -执行
类似于String.prototype.repeat(),请实现RepeatString<T, C>。
type A = RepeatString<'a', 3> // 'aaa'type B = RepeatString<'a', 0> // ''
C为负的情况可以忽略。
-通过 / -执行
类似于String.prototype.repeat(),请实现RepeatString<T, C>。
type A = RepeatString<'a', 3> // 'aaa'type B = RepeatString<'a', 0> // ''
C为负的情况可以忽略。