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 /eval.c | |
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 'eval.c')
-rw-r--r-- | eval.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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)); |