store/[org.clojure/clojure "1.6.0"] clj::clojure.core/cons

Official Documentation

Add notes
Arities
==================================================
   [x seq]

Docstring
==================================================
  Returns a new seq where x is the first element and seq is
    the rest.

Source

(def
 ^{:arglists '([x seq])
    :doc "Returns a new seq where x is the first element and seq is
    the rest."
   :added "1.0"
   :static true}

 cons (fn* ^:static cons [x seq] (. clojure.lang.RT (cons x seq))))

Example 1

Edit
(cons 1 '(2 3 4 5 6))
;; => (1 2 3 4 5 6)

(cons [1 2] [4 5 6])
;; => ([1 2] 4 5 6)

Uses on crossclj