RosettaCodeData/Task/String-append/EchoLisp/string-append.l

10 lines
242 B
Common Lisp

;; Solution from Common Lisp and Racket
(define-syntax-rule (set-append! str tail)
(set! str (string-append str tail)))
(define name "Albert") name
(set-append! name " de Jeumont-Schneidre")
name
"Albert de Jeumont-Schneidre"