Update all new Tasks
This commit is contained in:
parent
00a190b0a6
commit
91df62d461
5697 changed files with 93386 additions and 804 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