I've defined the following function soma-n where n is an integer and l is a list.
(defun soma-n (n l)
(if (null l)
()
(cons (+ (first l) n) (soma-n (rest l)))))
I'm trying to call it as follows, but it seems that one of the arguments is not sent, since I'm getting the following error:
(soma-n 3 '(1 2 3))
; SOMA-N got 1 arg, wanted at least 2.
What is the problem with the way I'm calling the function?