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