aboutsummaryrefslogtreecommitdiff
path: root/src/algebra
diff options
context:
space:
mode:
Diffstat (limited to 'src/algebra')
-rw-r--r--src/algebra/newdata.spad.pamphlet2
-rw-r--r--src/algebra/table.spad.pamphlet9
2 files changed, 5 insertions, 6 deletions
diff --git a/src/algebra/newdata.spad.pamphlet b/src/algebra/newdata.spad.pamphlet
index 78e3bf36..071fc497 100644
--- a/src/algebra/newdata.spad.pamphlet
+++ b/src/algebra/newdata.spad.pamphlet
@@ -62,7 +62,7 @@ TabulatedComputationPackage(Key ,Entry): Exports == Implementation where
Key: SetCategory
Entry: SetCategory
N ==> NonNegativeInteger
- H ==> HashTable(Key, Entry, "UEQUAL")
+ H ==> HashTable(Key, Entry, "EQUAL")
iprintpack ==> InternalPrintPackage()
Exports == with
diff --git a/src/algebra/table.spad.pamphlet b/src/algebra/table.spad.pamphlet
index b6347545..d69d72c2 100644
--- a/src/algebra/table.spad.pamphlet
+++ b/src/algebra/table.spad.pamphlet
@@ -29,7 +29,7 @@
HashTable(Key, Entry, hashfn): Exports == Implementation where
Key, Entry: SetCategory
- hashfn: String -- Union("EQ", "UEQUAL", "CVEC", "ID")
+ hashfn: String -- Union("EQ", "EQL", "EQUAL", "UEQUAL", "CVEC", "ID")
Exports ==> TableAggregate(Key, Entry) with
finiteAggregate
@@ -51,8 +51,7 @@ HashTable(Key, Entry, hashfn): Exports == Implementation where
"failed"
empty() ==
- MAKE_-HASHTABLE(INTERN(hashfn)$Lisp,
- INTERN("STRONG")$Lisp)$Lisp
+ hashTable(INTERN(hashfn)$Lisp)$Lisp
search(k:Key, t:%) ==
r := HGET(t, k, failMsg)$Lisp
@@ -110,7 +109,7 @@ Table(Key: SetCategory, Entry: SetCategory):Exports == Implementation where
finiteAggregate
Implementation ==> InnerTable(Key, Entry,
- if hashable(Key)$Lisp then HashTable(Key, Entry, "UEQUAL")
+ if hashable(Key)$Lisp then HashTable(Key, Entry, "EQUAL")
else AssociationList(Key, Entry))
@
@@ -152,7 +151,7 @@ EqTable(Key: SetCategory, Entry: SetCategory) ==
++ This domain provides tables where the keys are strings.
++ A specialized hash function for strings is used.
StringTable(Entry: SetCategory) ==
- HashTable(String, Entry, "CVEC")
+ HashTable(String, Entry, "EQUAL")
@
\section{domain GSTBL GeneralSparseTable}