Skip to main content
Home
Docs
Courses
Workshops
Jobs
Podcast
Sign in
Docs
Reference
Clojure
clojure.core
cons
cons
function
v1.0
clojure.core/cons
Available in:
BB
CLJ
CLJS
(
cons
[
x
seq
]
)
Returns a new seq where x is the first element and seq is the rest.
Examples
Sign in to contribute
Code
Platforms
Clojure
ClojureScript
Babashka
Submit
Cancel
No examples yet. Be the first to add one!
Categories
Collections › Modification
See Also
assoc
assoc-in
conj
disj
dissoc
pop
update
update-in
View source on GitHub ↗
← conj!
constantly →
All
⌘1
Clojure
⌘2
ClojureScript
⌘3
Babashka
⌘4