ClojureDocs

Nav

Namespaces

peek

clojure.core

Available since 1.0 (source)
  • (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.