Function: llama--right-apply-partially
llama--right-apply-partially is a byte-compiled function defined in
llama.el.
Signature
(llama--right-apply-partially FN &rest ARGS)
Documentation
Return a function that is a right partial application of FN to ARGS.
ARGS is a list of the last N arguments to pass to FN. The result is a new function which does the same as FN, except that the last N arguments are fixed at the values with which this function was called.
See also llama--left-apply-partially, which instead fixes the first
N arguments.
These functions are intended to be used using the names rpartial and
partial. 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".
Source Code
;; Defined in ~/.emacs.d/elpa/llama-20260301.1253/llama.el
(defun llama--right-apply-partially (fn &rest args)
"Return a function that is a right partial application of FN to ARGS.
ARGS is a list of the last N arguments to pass to FN. The result
is a new function which does the same as FN, except that the last N
arguments are fixed at the values with which this function was called.
See also `llama--left-apply-partially', which instead fixes the first
N arguments.
These functions are intended to be used using the names `rpartial' and
`partial'. 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\"."
(declare (pure t) (side-effect-free error-free))
(lambda (&rest args2)
(apply fn (append args2 args))))