Function: comp--pure-infer-func
comp--pure-infer-func is a byte-compiled function defined in
comp.el.gz.
Signature
(comp--pure-infer-func F)
Documentation
If all functions called by F are pure then F is pure too.
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/comp.el.gz
(defun comp--pure-infer-func (f)
"If all functions called by F are pure then F is pure too."
(when (and (cl-every (lambda (x)
(or (comp--function-pure-p x)
(eq x (comp-func-name f))))
(comp--collect-calls f))
(not (eq (comp-func-pure f) t)))
(comp-log (format "%s inferred to be pure" (comp-func-name f)))
(setf (comp-func-pure f) t)))