summaryrefslogtreecommitdiffstats
path: root/lib.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2012-04-14 14:11:25 -0700
committerKaz Kylheku <kaz@kylheku.com>2012-04-14 14:11:25 -0700
commita82a0b4aa32dc54b5ee590e9b87e9ad635b12ecc (patch)
tree9a968f077510ce4ef2cbfa32cd1c63826a3ccd8f /lib.h
parent38ffa1f373288d9bbf29b5bb2f763a35067ab5f4 (diff)
downloadtxr-a82a0b4aa32dc54b5ee590e9b87e9ad635b12ecc.tar.gz
txr-a82a0b4aa32dc54b5ee590e9b87e9ad635b12ecc.tar.bz2
txr-a82a0b4aa32dc54b5ee590e9b87e9ad635b12ecc.zip
* eval.c (eval_init): New functions remove-if and keep-if.
* lib.c (remove_if, keep_if): New functions. * lib.h (remove_if, keep_if): Declared. * txr.1: Documented.
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 18530770..e6c72b1e 100644
--- a/lib.h
+++ b/lib.h
@@ -384,6 +384,8 @@ val memqual(val obj, val list);
val remq(val obj, val list);
val remql(val obj, val list);
val remqual(val obj, val list);
+val remove_if(val pred, val list, val key);
+val keep_if(val pred, val list, val key);
val tree_find(val obj, val tree, val testfun);
val some_satisfy(val list, val pred, val key);
val all_satisfy(val list, val pred, val key);