32. implement RepeatString<T, C>
シェアしよう
- accepted / - tried
String.prototype.repeat()
のように、RepeatString<T, C>
を実装してください。
type A = RepeatString<'a', 3> // 'aaa'type B = RepeatString<'a', 0> // ''
Cが負の場合は無視して良い
- accepted / - tried
String.prototype.repeat()
のように、RepeatString<T, C>
を実装してください。
type A = RepeatString<'a', 3> // 'aaa'type B = RepeatString<'a', 0> // ''
Cが負の場合は無視して良い