Function: cl-constantly

cl-constantly is a byte-compiled function defined in cl-lib.el.gz.

Signature

(cl-constantly VALUE)

Documentation

Return a function that takes any number of arguments, but returns VALUE.

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/cl-lib.el.gz
(defun cl-constantly (value)
  "Return a function that takes any number of arguments, but returns VALUE."
  (lambda (&rest _)
    value))