I think I'm just using setq (or setf , I'm not quite sure of the difference), but I don't understand how to reference the [i][j] th element in an array in lisp.
My launch condition:
? (setq x (make-array '(3 3)))
I want to change, say, the 2nd element of the third βlineβ to do this:
? ;;; What Lisp code goes here?! #2A((0 0 0) (0 0 0) (0 "blue" 0))
The following, which I would think of, gives an error:
(setq (nth 1 (nth 2 x)) "blue")
So what is the correct syntax?
Thanks!
source share