Next: , Previous: , Up: Functions   [Index]


F.2.2 Partial Application

Here’s how to do partial application in Emacs Lisp:

Function: apply-partially func &rest args

Return a function that is a partial application of ‘FUNC’ to ‘ARGS’. ‘ARGS’ is a list of the first N arguments to pass to ‘FUNC’. The result is a new function which does the same as ‘FUNC’, except that the first N arguments are fixed at the values with which this function was called.