Function: -interpose

-interpose is a byte-compiled function defined in dash.el.

Signature

(-interpose SEP LIST)

Documentation

Return a new list of all elements in LIST separated by SEP.

View in manual

Source Code

;; Defined in ~/.emacs.d/elpa/dash-20260221.1346/dash.el
(defun -interpose (sep list)
  "Return a new list of all elements in LIST separated by SEP."
  (declare (side-effect-free t))
  (let (result)
    (when list
      (!cons (car list) result)
      (!cdr list))
    (while list
      (setq result (cons (car list) (cons sep result)))
      (!cdr list))
    (nreverse result)))