It should be:
(defun f (x)
(list (* 2 x) (* 3 x)))
You have an extra set of parentheses around the arguments to list
. When an expression is a list, the first thing is supposed to be the function to call, so
((* 2 x) (* 3 x))
is not a valid expression because (* 2 x)
is not a function.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…