summaryrefslogtreecommitdiffstats
path: root/lib.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2011-10-06 13:16:01 -0700
committerKaz Kylheku <kaz@kylheku.com>2011-10-06 13:16:01 -0700
commit9776ad45285a46cacd5fc7288489d374f6480f37 (patch)
treee141aa7d91e132752654f9bba78f167f5a65990d /lib.h
parentb9746b4840d0f38042773bbc097286dd02857e18 (diff)
downloadtxr-9776ad45285a46cacd5fc7288489d374f6480f37.tar.gz
txr-9776ad45285a46cacd5fc7288489d374f6480f37.tar.bz2
txr-9776ad45285a46cacd5fc7288489d374f6480f37.zip
Renaming the currying combinators according to new scheme.
* lib.c (bind2): Function renamed to curry_12_2. (bind2other): Function renamed to curry_12_1. (do_bind_2, do_bind2other): Helpers renamed likewise. (tree_find): Follows rename of bind2. * match.c (match_files): deffilter code follows bind2 rename to curry_12_2.
Diffstat (limited to 'lib.h')
-rw-r--r--lib.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib.h b/lib.h
index 302f8b35..403cf2ae 100644
--- a/lib.h
+++ b/lib.h
@@ -354,8 +354,11 @@ val funcall1(val fun, val arg);
val funcall2(val fun, val arg1, val arg2);
val funcall3(val fun, val arg1, val arg2, val arg3);
val reduce_left(val fun, val list, val init, val key);
-val bind2(val fun2, val arg);
-val bind2other(val fun2, val arg2);
+/* The notation curry_12_2 means take some function f(arg1, arg2) and
+ fix a value for argument 1 to create a g(arg2).
+ Other variations follow by analogy. */
+val curry_12_2(val fun2, val arg);
+val curry_12_1(val fun2, val arg2);
val curry_123_2(val fun3, val arg1, val arg3);
val chain(val first_fun, ...);
val andf(val first_fun, ...);