lispworks - Lisp Illegal argument in functor position -
hello can me out?
(defun f(x) (list ((* 2 x) (* 3 x))) ) (f 1) i this, illegal argument in functor position: (* 2 x) in ((* 2 x) (* 3 x)).
it should be:
(defun f (x) (list (* 2 x) (* 3 x))) you have set of parentheses around arguments list. when expression list, first thing supposed function call,
((* 2 x) (* 3 x)) is not valid expression because (* 2 x) not function.
Comments
Post a Comment