eieio: Association Lists

 
 9 Association Lists
 *******************
 
 Lisp offers the concept of association lists, with primitives such as
 ‘assoc’ used to access them.  The following functions can be used to
 manage association lists of EIEIO objects:
 
  -- Function: object-assoc key slot list
      Return an object if KEY is “equal” to SLOT’s value of an object in
      LIST.  LIST is a list of objects whose slots are searched.  Objects
      in LIST do not need to have a slot named SLOT, nor does SLOT need
      to be bound.  If these errors occur, those objects will be ignored.
 
  -- Function: object-assoc-list slot list
      Return an association list generated by extracting SLOT from all
      objects in LIST.  For each element of LIST the ‘car’ is the value
      of SLOT, and the ‘cdr’ is the object it was extracted from.  This
      is useful for generating completion tables.
 
  -- Function: eieio-build-class-alist &optional base-class
      Returns an alist of all currently defined classes.  This alist is
      suitable for completion lists used by interactive functions to
      select a class.  The optional argument BASE-CLASS allows the
      programmer to select only a subset of classes which includes
      BASE-CLASS and all its subclasses.