cl-custom-hash-table

API Reference

cl-custom-hash-table

CL-CUSTOM-HASH-TABLE

  • Macro DEFINE-CUSTOM-HASH-TABLE-CONSTRUCTOR (make &key test hash-function)
    Generate a function that can be used to create a new hash table that uses the given TEST and HASH-FUNCTION. For example: (DEFINE-CUSTOM-HASH-TABLE-CONSTRUCTOR MAKE-FOO-HT :TEST FOO-EQUAL-P :HASH-FUNCTION FOO-HASH) defines function (MAKE-FOO-HT &REST OPTIONS). OPTIONS are passed on to MAKE-HASH-TABLE if the platform supports custom hash tables natively, and ignored otherwise.
  • Macro WITH-CUSTOM-HASH-TABLE (&body body)
    Wrap BODY in an environment where access to custom hash-tables (GET-HASH etc) works as expected. This macro is a no-op in Lisp implementations that support custom hash-tables natively, but it is required in implementations where the fallback solution is used (*FEATURES* value :CUSTOM-HASH-TABLE-FALLBACK)