(defrelmacro append3 (x y z w)
(let ((iv (make-internal-var)))
`(and (append ,x ,y ,iv)
(append ,iv ,z ,w))))
==> (append3 (1) (2) (3) ?y)
?Y = (1 2 3)
KnowledgeWorks and Prolog User Guide (Macintosh version) - 24 Mar 2017