Imagine I have a class:
(defclass person () ())
And then I make some instances:
(setf anna (make-instance 'person))
(setf lisa (make-instance 'person))
How can I get either the objects themselves or the symbol names they were assigned to?
I want to be able to say something like (find-instances 'person)
and get something like (anna lisa)
or at least (#<PERSON {100700E793}> #<PERSON {100700E793}>)
.
What I am search for is the equivalent of each_object in ruby.
I very much want to be able to do it without an external library.