On Wed, 09 Dec 2009 12:00:21 -0800, Carl Worth <cworth@cworth.org> wrote:
> 1. Rewriting the code to not use apply-partially
1b. Use apply-partially
(defun apply-partially (fun &rest args)
"Return a function that is a partial application of FUN to ARGS.
ARGS is a list of the first N arguments to pass to FUN.
The result is a new function which does the same as FUN, except that
the first N arguments are fixed at the values with which this function
was called."
(lexical-let ((fun fun) (args1 args))
(lambda (&rest args2) (apply fun (append args1 args2)))))
Jed