Function: use-package-is-pair

use-package-is-pair is a byte-compiled function defined in use-package-core.el.gz.

Signature

(use-package-is-pair X CAR-PRED CDR-PRED)

Documentation

Return non-nil if X is a cons satisfying the given predicates.

CAR-PRED and CDR-PRED are applied to X's car and cdr, respectively.

Source Code

;; Defined in /usr/src/emacs/lisp/use-package/use-package-core.el.gz
(defsubst use-package-is-pair (x car-pred cdr-pred)
  "Return non-nil if X is a cons satisfying the given predicates.
CAR-PRED and CDR-PRED are applied to X's `car' and `cdr',
respectively."
  (and (consp x)
       (funcall car-pred (car x))
       (funcall cdr-pred (cdr x))))