Function: nrepl--push

nrepl--push is a byte-compiled function defined in nrepl-dict.el.

Signature

(nrepl--push OBJ STACK)

Documentation

Cons OBJ to the top element of the STACK.

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20260822.1520/nrepl-dict.el
(defun nrepl--push (obj stack)
  "Cons OBJ to the top element of the STACK."
  ;; stack is assumed to be a list
  (if (eq (caar stack) 'dict)
      (cons (cons 'dict (cons obj (cdar stack)))
            (cdr stack))
    (cons (if (null stack)
              obj
            (cons obj (car stack)))
          (cdr stack))))