Lisp, instructions not working in defun [duplicate]
问题 This question already has answers here : Common lisp error: “should be lambda expression” (4 answers) Closed 2 years ago . I'm trying to make a function that changes infix input to prefix eg : (x + 1) as input outputted as (+ x 1) . So here is my code for the moment : (setq x '(Y + 1)) (if (listp x ) (list (second x) (first x) (first (last x))) x) so it returns (+ Y 1) if I input a list and the user input if it's not a list. However, the problem is that I can't get this code working in a