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

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -