Function: queue-prepend

queue-prepend is a byte-compiled function defined in queue.el.

Signature

(queue-prepend QUEUE ELEMENT)

Documentation

Prepend an ELEMENT to the front of the QUEUE.

Source Code

;; Defined in ~/.emacs.d/elpa/queue-0.2/queue.el
(defun queue-prepend (queue element)
  "Prepend an ELEMENT to the front of the QUEUE."
  (if (queue-head queue)
      (push element (queue-head queue))
    (setf (queue-head queue)
	  (setf (queue-tail queue) (cons element nil)))))