Function: clojure--form-pairs

clojure--form-pairs is a byte-compiled function defined in clojure-mode.el.

Signature

(clojure--form-pairs FORM)

Documentation

Return the forms in FORM in pairs, or nil if it splices any in.

A splicing reader conditional would throw the pairs off.

Source Code

;; Defined in ~/.emacs.d/elpa/clojure-mode-20261103.1226/clojure-mode.el
(defun clojure--form-pairs (form)
  "Return the forms in FORM in pairs, or nil if it splices any in.
A splicing reader conditional would throw the pairs off."
  (let ((children (clojure--form-values form))
        pairs)
    (unless (seq-some (lambda (child) (eq (clojure--form-type child) 'splice))
                      children)
      (while children
        (push (list (pop children) (pop children)) pairs))
      (nreverse pairs))))