summaryrefslogtreecommitdiffstats
path: root/eval.c
diff options
context:
space:
mode:
authorPaul A. Patience <paul@apatience.com>2021-07-09 23:59:09 -0400
committerKaz Kylheku <kaz@kylheku.com>2021-07-09 23:28:14 -0700
commit0287650c7477bf6b5811f0456b6fc3e9bbd3d245 (patch)
treeb3e2cecfd224365a759b5e63f6eebc422bd5b478 /eval.c
parent004bcff7d950b277378536a21ea9cba34edf6b03 (diff)
downloadtxr-0287650c7477bf6b5811f0456b6fc3e9bbd3d245.tar.gz
txr-0287650c7477bf6b5811f0456b6fc3e9bbd3d245.tar.bz2
txr-0287650c7477bf6b5811f0456b6fc3e9bbd3d245.zip
lib: new function separate.
* lib.c (separate): New function. * lib.h (separate): Declared. * eval.c (eval_init): Register separate intrinsic. * 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 be559e6f..d51eb5d3 100644
--- a/eval.c
+++ b/eval.c
@@ -6867,6 +6867,7 @@ void eval_init(void)
reg_fun(intern(lit("keepql"), user_package), func_n3o(keepql, 2));
reg_fun(intern(lit("keepqual"), user_package), func_n3o(keepqual, 2));
reg_fun(intern(lit("keep-if"), user_package), func_n3o(keep_if, 2));
+ reg_fun(intern(lit("separate"), user_package), func_n3o(separate, 2));
reg_fun(intern(lit("remq*"), user_package), func_n2(remq_lazy));
reg_fun(intern(lit("remql*"), user_package), func_n2(remql_lazy));
reg_fun(intern(lit("remqual*"), user_package), func_n2(remqual_lazy));