(advice-remove 'type-of #'cl--old-struct-type-of))))
(make-obsolete 'cl-old-struct-compat-mode nil "30.1")
-(defun cl-constantly (value)
- "Return a function that takes any number of arguments, but returns VALUE."
- (lambda (&rest _)
- value))
+(defalias 'cl-constantly #'constantly)
;;; cl-lib.el ends here
(declare (pure t) (side-effect-free error-free))
t)
+(defun constantly (value)
+ "Return a function that takes any number of arguments, but returns VALUE."
+ (lambda (&rest _) value))
+
(defun error (string &rest args)
"Signal an error, making a message by passing ARGS to `format-message'.
Errors cause entry to the debugger when `debug-on-error' is non-nil.