diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2011-10-06 13:16:01 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2011-10-06 13:16:01 -0700 |
commit | 9776ad45285a46cacd5fc7288489d374f6480f37 (patch) | |
tree | e141aa7d91e132752654f9bba78f167f5a65990d /lib.h | |
parent | b9746b4840d0f38042773bbc097286dd02857e18 (diff) | |
download | txr-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.h | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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, ...); |