Changes by: Jason J. Hickey (jyh at cs.caltech.edu)
Date: 2007-08-09 11:17:33 -0700 (Thu, 09 Aug 2007)
Revision: 11944
Log message:
Added partial application.
add-c-suffix = $(apply $(addsuffix), .c)
Partial application can be used with both normal and
builtin functions. For builtin functions, however, we
trust the arity spec, and the arity is often incorrect!
apply allows application to too few args, as well as
application to too many args.
f(A = 1, x) =
g(B = 2, y) =
add($A, $B, $x, $y)
i = $(apply $f, B = 10, 20, 30)