Anonymous user
Repeat a string: Difference between revisions
→{{header|Common Lisp}}: repeated concatenation is likely O(n^2); replaced with string-stream
No edit summary |
(→{{header|Common Lisp}}: repeated concatenation is likely O(n^2); replaced with string-stream) |
||
Line 58:
=={{header|Common Lisp}}==
<lang lisp>(defun repeat-string (n string)
(loop repeat n do (write-string string stream))))
=={{header|E}}==
|