Function: -rpartial

-rpartial is a byte-compiled function defined in dash.el.

Signature

(-rpartial FN &rest ARGS)

Documentation

Return a function that is a 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. This is like -partial, except the arguments are fixed starting from the right rather than the left.

View in manual

Source Code

;; Defined in ~/.emacs.d/elpa/dash-20260221.1346/dash.el
(defun -rpartial (fn &rest args)
  "Return a function that is a 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.  This is like `-partial', except the arguments are fixed
starting from the right rather than the left."
  (declare (pure t) (side-effect-free error-free))
  (lambda (&rest args-before) (apply fn (append args-before args))))