summaryrefslogtreecommitdiffstats
path: root/lib.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2023-06-07 07:04:17 -0700
committerKaz Kylheku <kaz@kylheku.com>2023-06-07 07:04:17 -0700
commit1b1e8f1da2d99a6c49c3949857c8bee8ef354d18 (patch)
treeef3be11d27c97bb7df6c3b170fffcfa3f90449f0 /lib.h
parent4508e338c224bae1b6c5c4492c1f26f8720467cc (diff)
downloadtxr-1b1e8f1da2d99a6c49c3949857c8bee8ef354d18.tar.gz
txr-1b1e8f1da2d99a6c49c3949857c8bee8ef354d18.tar.bz2
txr-1b1e8f1da2d99a6c49c3949857c8bee8ef354d18.zip
New functions keep-keys-if, separate-keys.
* lib.[ch] (keep_keys_if, separate_keys): New functions. * eval.c (eval_init): keep-keys-if, separate-keys intrinsics registered. * txr.1: Documented. * stdlib/doc-syms.tl: Updated.
Diffstat (limited to 'lib.h')
-rw-r--r--lib.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib.h b/lib.h
index 8448db55..1046092f 100644
--- a/lib.h
+++ b/lib.h
@@ -847,7 +847,9 @@ val keepq(val obj, val seq, val keyfun);
val keepql(val obj, val seq, val keyfun);
val keepqual(val obj, val seq, val keyfun);
val keep_if(val pred, val seq, val keyfun);
+val keep_keys_if(val pred, val seq_in, val keyfun_in);
val separate(val pred, val seq, val keyfun);
+val separate_keys(val pred, val seq_in, val keyfun_in);
val remq_lazy(val obj, val list);
val remql_lazy(val obj, val list);
val remqual_lazy(val obj, val list);