Guile Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
table vs hash-table
Hello,
FWIW, RScheme (0.7.2, from the RScheme user reference 0.4) uses
'table'. Actually, it provides an abstract class <table>, but the
only subclasses implemented are subclasses (for certain key types) of
<hash-table>.
Constructor:
(make-table test-fn hash-fn) => table
Read access:
(table-lookup table key) => value(1)
(1) #f if key is not present in the table.
(table-key-present? table key) => boolean
#t if key is present, #f otherwise.
Write access:
(table-insert! table key value) => prev-value
(table-remove! table key) => value
others:
(table-size table) => integer
Number of entries.
(key-sequence table) => list
(value-sequence table) => list
Lists of keys and values, in unspecified, but compatible order.
(table-for-each table proc)
Where proc takes 3 arguments: hash-code, key and value
HTH,
Roland
Guile Home |
Main Index |
Thread Index