5.1.3 List Manipulation

Car, Cdr, Caar, Cadr, Cdar, Cddr (E)

returns the car, cdr, caar, cadr, cdar, or cddr of E respectively.

Set-Cdr, Set-Cddr (E)

The cdr or cddr of the contents of E is stored in E. The contents of E should be either a list or NIL.

Set-Lpop (E)

The car of the contents of E is returned; the cdr of the contents of E is stored in E. The contents of E should be a list or NIL.

Spread (E)

pushes the elements of the list E onto the stack in left-to-right order.

Replace-Car, Replace-Cdr (List Value)

sets the car or cdr of the List to Value and returns Value.

Endp (X)

sets the condition code eq bit to 1 if X is NIL, or 0 if X is a cons cell. Otherwise an error is signalled.

Assoc, Assq (List Item)

returns the first cons in the association-list List whose car is EQL to Item. If the = part of the EQL comparison bugs out (and it can if the numbers are too complicated), a Lisp-level Assoc function is called with the current cdr of the List. Assq returns the first cons in the association-list List whose car is EQ to Item.

Member, Memq (List Item)

returns the first cons in the list List whose car is EQL to Item. If the = part of the EQL comparison bugs out, a Lisp-level Member function is called with the current cdr of the List. Memq returns the first cons in List whose car is EQ to the Item.

GetF (List Indicator Default)

searches for the Indicator in the list List, cddring down as the Common Lisp form GetF would. If Indicator is found, its associated value is returned, otherwise Default is returned.