[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

An example of where setf does not do what I want.

I want to do

  (setf (apply #'aref (cons my-array dims)) value)

where MY-ARRAY, DIMS, and VALUE are bound to meaningful values

Unfortunately, my reading of SETF says that the above won't work.
If I had (ASET value array &rest dims) then I could to
  (apply #'aset (list* value my-array dims))
to do what I want.

How do I do what I want?