Ok, here's where I'm at. Currently looking at some code that is written for Clojure Lisp, which I know zip about.
I can't figure out how to convert the following line of Clojure code to autolisp.
(apply + (map #(VectorSubtract L1 %) L2))
Again, it is simplified for illustration purposes. VectorSubtract in AL would be
(defun VectorSubtract (v u / )
(mapcar '- v u)
)
Running the code by hand the final result should be (I think)
(9.0 9.0 9.0)
L1 = (1.0 2.0 3.0)
L2 = ((1.0 2.0 3.0) (4.0 5.0 6.0) (7.0 8.0 9.0))
VectorSubtract (1.0 2.0 3.0) (1.0 2.0 3.0) => (0.0 0.0 0.0)
VectorSubtract (1.0 2.0 3.0) (4.0 5.0 6.0) => (3.0 3.0 3.0)
VectorSubtract (1.0 2.0 3.0) (7.0 8.0 9.0) => (6.0 6.0 6.0)
Final Result = (9.0 9.0 9.0)
Not knowing the fine art of mapcar, lambda, and other such lispy things, this is just out of my reach.
Again TIA for any help