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 -

javascript - addthis share facebook and google+ url -

ios - Show keyboard with UITextField in the input accessory view -