0

This question already has an answer here:

First example:

(defun first (a)
    '(a 1))
(first 2) => (a 1)

Second example:

(defun second (b)
    (+ b 1))
(second 1) => 2

How can I get (2 1) with (first 2)?

marked as duplicate by Drew, Stefan, npostavs, Community Apr 23 '17 at 18:37

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

0

Code:

(defun first (a)
    (list a 1))
(first 2)

Result:

(2 1)

Not the answer you're looking for? Browse other questions tagged or ask your own question.