Skip to main content
Home
Docs
Courses
Workshops
Jobs
Podcast
Sign in
Docs
Reference
ClojureScript
cljs.core
vec
vec
function
v1.7
cljs.core/vec
Available in:
BB
CLJ
CLJS
(
vec
[
coll
]
)
Creates a new vector containing the contents of coll. JavaScript arrays will be aliased and should not be modified.
Examples
Sign in to contribute
Code
Platforms
Clojure
ClojureScript
Babashka
Submit
Cancel
No examples yet. Be the first to add one!
Categories
Collections › Creating
See Also
array-map
cycle
hash-map
hash-set
iterate
lazy-seq
list
list*
range
repeat
← vary-meta
vec-lite →
All
⌘1
Clojure
⌘2
ClojureScript
⌘3
Babashka
⌘4