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, after: (define-custom-hash-table-constructor make-foo-ht :test foo-equal-p :hash-function foo-hash) the function MAKE-FOO-HT is defined.
  • 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)