HASH TABLE FUNCTIONS


A hash table is implemented as an structure of type hash-table. No general accessing functions are provided, and hash tables print out using the angle bracket convention (not readable by READ). The first element is the comparison function. The remaining elements contain association lists of keys (that hash to the same value) and their data.


MAKE A HASH TABLE

(make-hash-table &key :size :test)


EXTRACT FROM HASH TABLE

(
gethash <key> <table> [<def>])

See also gethash in SETF.


DELETE FROM HASH TABLE

(
remhash <key> <table>)


CLEAR THE HASH TABLE

(
clrhash <table>)


NUMBER OF ENTRIES IN HASH TABLE

(
hash-table-count <table>)


MAP FUNCTION OVER TABLE ENTRIES

(
maphash <fcn> <table>)


XLISP-PLUS - Version 2.1g - Tom Almy tom.almy@tek.com - 18 JUL 94
Generated with
WebMaker