Function: -common-prefix

-common-prefix is a byte-compiled function defined in dash.el.

Signature

(-common-prefix &rest LISTS)

Documentation

Return the longest common prefix of LISTS.

View in manual

Source Code

;; Defined in ~/.emacs.d/elpa/dash-20260221.1346/dash.el
(defun -common-prefix (&rest lists)
  "Return the longest common prefix of LISTS."
  (declare (pure t) (side-effect-free t))
  (--reduce (--take-while (and acc (equal (pop acc) it)) it)
            lists))