Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
8
Task/String-append/Common-Lisp/string-append.lisp
Normal file
8
Task/String-append/Common-Lisp/string-append.lisp
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
(defmacro concatenatef (s &rest strs)
|
||||
"Append additional strings to the first string in-place."
|
||||
`(setf ,s (concatenate 'string ,s ,@strs)))
|
||||
(defvar *str* "foo")
|
||||
(concatenatef *str* "bar")
|
||||
(format T "~a~%" *str*)
|
||||
(concatenatef *str* "baz" "abc" "def")
|
||||
(format T "~a~%" *str*)
|
||||
Loading…
Add table
Add a link
Reference in a new issue