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.c | |
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.c')
-rw-r--r-- | lib.c | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -381,7 +381,7 @@ val tree_find(val obj, val tree) if (equal(obj, tree)) return t; else if (consp(tree)) - return some_satisfy(tree, bind2(func_n2(tree_find), obj), nil); + return some_satisfy(tree, curry_12_2(func_n2(tree_find), obj), nil); return nil; } @@ -1472,24 +1472,24 @@ val reduce_left(val fun, val list, val init, val key) return init; } -static val do_bind2(val fcons, val arg2) +static val do_curry_12_2(val fcons, val arg2) { return funcall2(car(fcons), cdr(fcons), arg2); } -val bind2(val fun2, val arg) +val curry_12_2(val fun2, val arg) { - return func_f1(cons(fun2, arg), do_bind2); + return func_f1(cons(fun2, arg), do_curry_12_2); } -static val do_bind2other(val fcons, val arg1) +static val do_curry_12_1(val fcons, val arg1) { return funcall2(car(fcons), arg1, cdr(fcons)); } -val bind2other(val fun2, val arg2) +val curry_12_1(val fun2, val arg2) { - return func_f1(cons(fun2, arg2), do_bind2other); + return func_f1(cons(fun2, arg2), do_curry_12_1); } static val do_curry_123_2(val fcons, val arg2) |