Function: -is-infix?

-is-infix? is a byte-compiled function defined in dash.el.

Signature

(-is-infix? INFIX LIST)

Documentation

Return non-nil if INFIX is infix of LIST.

This operation runs in O(n^2) time

Alias: -is-infix-p

View in manual

Aliases

-is-infix-p

Source Code

;; Defined in ~/.emacs.d/elpa/dash-20260221.1346/dash.el
(defun -is-infix? (infix list)
  "Return non-nil if INFIX is infix of LIST.

This operation runs in O(n^2) time

Alias: `-is-infix-p'"
  (declare (pure t) (side-effect-free t))
  (let (done)
    (while (and (not done) list)
      (setq done (-is-prefix? infix list))
      (!cdr list))
    done))