Community
Please, I need help understanding something:=================================================Command: (setq pt (list 1.0 2.0 3.0))(1.0 2.0 3.0)Command: (cddr pt)(3.0)Command: (+ (cddr pt) 100); error: bad argument type: numberp: (3.0)Command: (+ (cddr pt) 100.0); error: bad argument type: numberp: (3.0)=================================================Why the above code generates an error?Why the numbers are not summed?Thank you!Cristiano
3 options
(setq pt (list 1.0 2.0 3.0)) ;;;(1.0 2.0 3.0) (setq pt+100z ( mapcar '+ pt (list 0 0 100))) (setq z+100 ( + (last pt) 100)) (setq z++100 ( + (car(cddr pt))))