어떻게 보면.. printf()의 기분?
> (defun tt-path (edge)
'(there is a ,(caddr edge) going, (cadr edge) from here.))
tt-path
> (tt-path '(garden west door))
(there is a (comma (caddr edge)) going (comma (cadr edge)) from here.)
|
> (defun t2-path (edge)
`(there is a ,(caddr edge) going, (cadr edge) from here.))
t2-path
> (t2-path '(garden west door))
(there is a door going west from here.)
|
'Programming > lisp' 카테고리의 다른 글
lisp eval & apply (0) | 2013.01.22 |
---|---|
xlisp에서 incf 오류 (0) | 2013.01.19 |
lisp rem, mod (0) | 2013.01.17 |
lisp i/o (0) | 2013.01.17 |
lisp file i/o (0) | 2013.01.17 |