diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2022-03-30 23:27:14 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2022-03-30 23:27:14 -0700 |
commit | 0c49e3197f5713c72f2d088a4c9f382f6c019ad2 (patch) | |
tree | cae9d956d3e6f6d973a74e9eabaa60539dfe9058 /txr.1 | |
parent | f4edb0505467ce4fe4ac23f1889062d0bbddb94d (diff) | |
download | txr-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.1 | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -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 |