Jump to content

Repeat a string: Difference between revisions

no edit summary
(added Ursala)
No edit summary
Line 185:
=={{header|Scala}}==
<lang scala>"ha" * 5 // ==> "hahahahaha"</lang>
 
=={{header|Scheme}}==
<lang scheme>(define (string-repeat n str)
(fold string-append "" (make-list n str)))
(string-repeat 5 "ha") ==> "hahahahaha"</lang>
 
=={{header|Tcl}}==
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.