Common Lisp Package: MULTIVAL-PLIST

README:

FUNCTION

Public

GETF-ALL (PLIST KEY &OPTIONAL (DEFAULT NIL DEFAULT-P))

This is a version of `getf' enabled to manage multiple keys. If the `plist' has two or more pairs that they have given `key' as a key, returns the values of each pairs as one list.

SETFGETF-ALL (VAL PLIST KEY &OPTIONAL (DEFAULT NIL DEFAULT-P))

Changes the stored value(s) of the given `key'. This removes or adds pairs as necessary to store the new list.

Private

ENSURE-CONS (CONS)

If CONS is a cons, it is returned. Otherwise returns a fresh cons with CONS in the car, and NIL in the cdr.

MACRO

Public

REMF-ALL (PLIST KEY)

Removes a key and associated values for the given `key'.