summaryrefslogtreecommitdiffstats
path: root/txr.1
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2022-03-30 23:27:14 -0700
committerKaz Kylheku <kaz@kylheku.com>2022-03-30 23:27:14 -0700
commit0c49e3197f5713c72f2d088a4c9f382f6c019ad2 (patch)
treecae9d956d3e6f6d973a74e9eabaa60539dfe9058 /txr.1
parentf4edb0505467ce4fe4ac23f1889062d0bbddb94d (diff)
downloadtxr-0c49e3197f5713c72f2d088a4c9f382f6c019ad2.tar.gz
txr-0c49e3197f5713c72f2d088a4c9f382f6c019ad2.tar.bz2
txr-0c49e3197f5713c72f2d088a4c9f382f6c019ad2.zip
New function: isecp.
* eval.c (eval_init): Register isecp intrinsic. * lib.c (isecp): New function. * lib.h (isecp): Declared. * stdlib/compiler.tl (lambda-apply-transform, dump-compiled-objects): Use isecp instead of isec, since the actual intersection of symbols isn't needed, only whether it exists. * txr.1: Documented. * stdlib/doc-syms.tl: Updated.
Diffstat (limited to 'txr.1')
-rw-r--r--txr.112
1 files changed, 11 insertions, 1 deletions
diff --git a/txr.1 b/txr.1
index 7ffc3d13..8ae02f17 100644
--- a/txr.1
+++ b/txr.1
@@ -35442,10 +35442,11 @@ function, these functions behave the same as
and
.codn find-min .
-.coNP Functions @, uni @, isec @ diff and @ symdiff
+.coNP Functions @, uni @, isec @, isecp @ diff and @ symdiff
.synb
.mets (uni < iter1 < iter1 >> [ testfun <> [ keyfun ]])
.mets (isec < iter1 < iter1 >> [ testfun <> [ keyfun ]])
+.mets (isecp < iter1 < iter1 >> [ testfun <> [ keyfun ]])
.mets (diff < iter1 < iter1 >> [ testfun <> [ keyfun ]])
.mets (symdiff < iter1 < iter2 >> [ testfun <> [ keyfun ]])
.syne
@@ -35469,6 +35470,15 @@ and
.metn iter2 ,
returning a new sequence.
+The
+.code isecp
+is Boolean: it returns
+.code t
+for those arguments for which
+.code isec
+returns a non-empty list, otherwise
+.codn nil .
+
The arguments
.meta iter1
and