RosettaCodeData/Task/Repeat-a-string/Retro/repeat-a-string.retro
2023-07-01 13:44:08 -04:00

5 lines
105 B
Text

with strings'
: repeatString ( $n-$ )
1- [ dup ] dip [ over prepend ] times nip ;
"ha" 5 repeatString