0

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)?

0

Code:

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

Result:

(2 1)
| improve this answer | |

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