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

10 lines
242 B
Text
Raw Permalink Normal View History

2016-12-05 23:44:36 +01:00
;; 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"