Funcall inside Cons Lisp -
i began play lisp , i'm trying use funcall inside cons.
this i'm trying do:
(cons  '(1 2 3) '(1 (funcall #'rest '(a b)) )) the result should be:
((1 2 3) 1 (b)) i know works:
(cons  '(1 2 3) (funcall #'rest '(a b))) and tried , didn't work
(cons  '(1 2 3) `,'(1 (funcall #'rest '(a b)) )) (cons '(1 2 3) '(1 (apply 'rest '(a b)))) (cons '(1 2 3) '(1 `,(apply 'rest '(a b)))) thanks in advance.
(cons '(1 2 3) `(1 ,(funcall #'rest '(a b)))) 
Comments
Post a Comment