[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
An example of where setf does not do what I want.
- To: common-lisp@godot
- Subject: An example of where setf does not do what I want.
- From: Bradley C. Kuszmaul <bradley@Think.COM>
- Date: Fri, 12 Sep 1986 10:11:00 -0000
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?