diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2019-10-11 23:52:30 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2019-10-11 23:52:30 -0700 |
commit | f557c6110536ed4dcf1191386ac1e63ae35b03f0 (patch) | |
tree | 608ab1ced83b281e670c8431638828eb770aea34 | |
parent | 35f3649a02f7edd0f69d3e1dcbed7fc2c435ce9f (diff) | |
download | txr-f557c6110536ed4dcf1191386ac1e63ae35b03f0.tar.gz txr-f557c6110536ed4dcf1191386ac1e63ae35b03f0.tar.bz2 txr-f557c6110536ed4dcf1191386ac1e63ae35b03f0.zip |
doc: document :eq-based.
* txr.1: the :eq-based keyword and its semantics is
documented, along with its mutual exclusion against the other
two.
-rw-r--r-- | txr.1 | 29 |
1 files changed, 17 insertions, 12 deletions
@@ -11559,6 +11559,7 @@ keywords as are used when calling the function hash to construct a hash table. Allowed keywords are: .codn :equal-based , .codn :eql-based , +.codn :eq-based , .codn :weak-keys , .codn :weak-values , and @@ -11572,9 +11573,10 @@ can be retrieved using the .code hash-userdata function. The -.code :equal-based -and +.codn :equal-based , .code :eql-based +and +.code :eq-based keywords are mutually exclusive. An empty list can be specified as @@ -17867,7 +17869,9 @@ Two hashes are if they use the same equality (both are .codn :equal-based , or both are -.codn :eql-based ), +.code :eql-based +or else both are +.codn :eq-based ), if their associated user data elements are equal (see the function .codn hash-userdata ), if their sets of keys are identical, and if the data items associated with @@ -43817,7 +43821,7 @@ becomes unspecified. .mets \ \ \ \ \ \ \ \ \ \ < equal-based <> [ hash-seed ]) .mets (hash {:weak-keys | :weak-vals | .mets \ \ \ \ \ \ :eql-based | :equal-based | -.mets \ \ \ \ \ \ :userdata << obj }*) +.mets \ \ \ \ \ \ :eq-based | :userdata << obj }*) .syne .desc These functions construct a new hash table. @@ -43859,21 +43863,24 @@ keyword arguments. The supported keyword symbols are: .codn :weak-vals , .codn :equal-based , .code :eql-based +.code :eq-based and .code :userdata which can be specified in any order to turn on the corresponding properties in the newly constructed hash table. Only one of -.code :equal-based -and +.codn :equal-based , .code :eql-based +and +.code :eq-based may be specified. If specified, then the hash table uses -.code equal -or +.codn equal , .code eql +or +.code eq equality, respectively, for considering two keys to be the same key. -If neither is specified, the +If none of these is specified, the .code hash function produces an .code :equal-based @@ -43881,9 +43888,7 @@ hash table by default. If .code :weak-keys -is specified, then it automatically implies -.code :eql-based -and, therefore, +is specified, then .code :equal-based may not be specified. |