summaryrefslogtreecommitdiffstats
path: root/txr.1
diff options
context:
space:
mode:
Diffstat (limited to 'txr.1')
-rw-r--r--txr.153
1 files changed, 50 insertions, 3 deletions
diff --git a/txr.1 b/txr.1
index 7e14e11c..55655241 100644
--- a/txr.1
+++ b/txr.1
@@ -18072,10 +18072,13 @@ The
function searches an association list
.meta alist
for a cons cell whose
-car field is equivalent to
+.code car
+field is equivalent to
.meta key
-(with equality determined by the equal
-function). The first such cons is returned. If no such cons is found,
+under the
+.code equal
+function.
+The first such cons is returned. If no such cons is found,
.code nil
is returned.
@@ -18094,6 +18097,50 @@ is determined using the
function rather than
.codn equal .
+.coNP Functions @ rassql and @ rassoc
+.synb
+.mets (rassql < value << alist )
+.mets (rassoc < value << alist )
+.syne
+.desc
+The
+.code rassql
+and
+.code rassoc
+functions are reverse lookup counterparts to
+.code assql
+and
+.codn assoc .
+When searching, they examine the
+.code cdr
+field of the pairs of
+.meta alist
+rather than the
+.code car
+field.
+
+The
+.code rassql
+function searches association list
+.meta alist
+for a cons whose
+.code cdr
+field equivalent to
+.meta value
+according to the
+.code eql
+function. If such a cons is found, it is returned.
+Otherwise
+.code nil
+is returned.
+
+The
+.code rassoc
+function searches in the same way as
+.code rassql
+but compares values using
+.codn equal .
+
.coNP Function @ acons
.synb
.mets (acons < car < cdr << alist )