[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

assoc question

I don't know if this was discussed before, so please excuse the possible
repetition.  According to CLtL (pp 279-281), assoc permits the keyword
:key, but neither assoc-if nor assoc-if-not allow it (same for rassoc,
rassoc-if, and rassoc-if-not).  Franz Common Lisp and Xerox Common Lisp
follow the book and permit :key for just assoc (and rassoc), while KCL and
TI Explorer don't allow :key at all.

I think it should not be allowed at all since assoc lists are defined
as pairs such that the keys are the cars of the respective pairs, not
some function of the respective cars.  In any event, there should certainly
not be an inconsistency.

Elia Weixelbaum