ClojureDocs

Nav

Namespaces

pop

clojure.core

Available since 1.0 (source)
  • (pop coll)
For a list or queue, returns a new list/queue without the first
item, for a vector, returns a new vector without the last item. If
the collection is empty, throws an exception.  Note - not the same
as next/butlast.