Emacs Lispで部分適用


(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.
(apply (apply-partially 'call-process "echo" nil nil nil)
       (list "foo" "bar"))