tasks a-s
This commit is contained in:
parent
47bf37c096
commit
b83f433714
12433 changed files with 156208 additions and 123 deletions
5
Task/Repeat-a-string/Common-Lisp/repeat-a-string-1.lisp
Normal file
5
Task/Repeat-a-string/Common-Lisp/repeat-a-string-1.lisp
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
(defun repeat-string (n string)
|
||||
(with-output-to-string (stream)
|
||||
(loop repeat n do (write-string string stream))))
|
||||
|
||||
(princ (repeat-string 5 "hi"))
|
||||
1
Task/Repeat-a-string/Common-Lisp/repeat-a-string-2.lisp
Normal file
1
Task/Repeat-a-string/Common-Lisp/repeat-a-string-2.lisp
Normal file
|
|
@ -0,0 +1 @@
|
|||
(make-string 5 :initial-element #\X)
|
||||
Loading…
Add table
Add a link
Reference in a new issue