Function: llama--left-apply-partially
llama--left-apply-partially is a byte-compiled function defined in
llama.el.
Signature
(llama--left-apply-partially FN &rest ARGS)
Documentation
Return a function that is a partial application of FN to ARGS.
ARGS is a list of the first N arguments to pass to FN. The result is a new function which does the same as FN, except that the first N arguments are fixed at the values with which this function was called.
See also llama--right-apply-partially, which instead fixes the last
N arguments.
These functions are intended to be used using the names partial and
rpartial. To be able to use these shorthands in a file, you must set
the file-local value of read-symbols-shorthands, which was added in
Emacs 28.1. For an example see the end of file "llama.el".
This is an alternative to apply-partially, whose name is too long.
Source Code
;; Defined in ~/.emacs.d/elpa/llama-20260301.1253/llama.el
;;; Partial applications
(defun llama--left-apply-partially (fn &rest args)
"Return a function that is a partial application of FN to ARGS.
ARGS is a list of the first N arguments to pass to FN. The result
is a new function which does the same as FN, except that the first N
arguments are fixed at the values with which this function was called.
See also `llama--right-apply-partially', which instead fixes the last
N arguments.
These functions are intended to be used using the names `partial' and
`rpartial'. To be able to use these shorthands in a file, you must set
the file-local value of `read-symbols-shorthands', which was added in
Emacs 28.1. For an example see the end of file \"llama.el\".
This is an alternative to `apply-partially', whose name is too long."
(declare (pure t) (side-effect-free error-free))
(lambda (&rest args2)
(apply fn (append args args2))))