Skip to main content

pop

functionv1.0

clojure.core/pop

Available in:BBCLJCLJS
(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.

No examples yet. Be the first to add one!