Function: erc-match--opt-pat-get

erc-match--opt-pat-get is a byte-compiled function defined in erc-match.el.gz.

Signature

(erc-match--opt-pat-get COMPUTE-FN INPUT)

Documentation

Retrieve cached results for computing INPUT with COMPUTE-FN.

Source Code

;; Defined in /usr/src/emacs/lisp/erc/erc-match.el.gz
(defun erc-match--opt-pat-get (compute-fn input)
  "Retrieve cached results for computing INPUT with COMPUTE-FN."
  (with-memoization (alist-get input (alist-get compute-fn
                                                erc-match--opt-pat-cache nil t)
                               nil t)
    (funcall compute-fn input)))