5 lines
111 B
Text
5 lines
111 B
Text
> str_repeat 0 s = "";
|
|
> str_repeat n s = s + (str_repeat (n-1) s) if n>0;
|
|
> str_repeat 5 "ha";
|
|
"hahahahaha"
|
|
>
|