Skip to main content
Home
Docs
Courses
Workshops
Jobs
Podcast
Sign in
Docs
Reference
Babashka
clojure.core
peek
peek
function
v1.0
clojure.core/peek
Available in:
BB
CLJ
CLJS
(
peek
[
coll
]
)
For a list or queue, same as first, for a vector, same as, but much more efficient than, last. If the collection is empty, returns nil.
Examples
Sign in to contribute
Code
Platforms
Clojure
ClojureScript
Babashka
Submit
Cancel
No examples yet. Be the first to add one!
Categories
Collections › Accessing
See Also
count
empty
find
find
first
get
get
get
get
get
← partitionv-all
persistent! →
All
⌘1
Clojure
⌘2
ClojureScript
⌘3
Babashka
⌘4