summaryrefslogtreecommitdiffstats
path: root/eval.c
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
commit687db4b84ecfd9733b67a50293de6f41f311a042 (patch)
treecae9d956d3e6f6d973a74e9eabaa60539dfe9058 /eval.c
parentbcebff2edc8a1ded61fa6f31b9080bae657aedc7 (diff)
downloadtxr-687db4b84ecfd9733b67a50293de6f41f311a042.tar.gz
txr-687db4b84ecfd9733b67a50293de6f41f311a042.tar.bz2
txr-687db4b84ecfd9733b67a50293de6f41f311a042.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 'eval.c')
-rw-r--r--eval.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/eval.c b/eval.c
index a1fc263a..ed3c88f7 100644
--- a/eval.c
+++ b/eval.c
@@ -7350,6 +7350,7 @@ void eval_init(void)
reg_fun(intern(lit("diff"), user_package), func_n4o(diff, 2));
reg_fun(intern(lit("symdiff"), user_package), func_n4o(symdiff, 2));
reg_fun(intern(lit("isec"), user_package), func_n4o(isec, 2));
+ reg_fun(intern(lit("isecp"), user_package), func_n4o(isecp, 2));
reg_fun(intern(lit("uni"), user_package), func_n4o(uni, 2));
reg_fun(intern(lit("seqp"), user_package), func_n1(seqp));