ruricolist / serapeum

Utilities beyond Alexandria
MIT License
420 stars 41 forks source link

FLIP-HASH-TABLE missing resulting hash table test parameter #125

Closed mfiano closed 2 years ago

mfiano commented 2 years ago

It seems that flip-hash-table is missing a parameter to specify how keys of the resulting hash table are tested for equality (the :test argument of MAKE-HASH-TABLE).

If I have a hash table with a test function of EQL that maps integers to conses, and I call FLIP-HASH-TABLE, the resulting hash table's cons keys are not accessible without obtaining references to the original cons identities.