Skip to content

clojure.core/rest

View this page on ClojureDocs

Type: function Added: Clojure 1.0 Examples: 6 Runnable: 6
([coll])

Returns a possibly empty seq of the items after the first. Calls seq on its argument.

Examples

by MrHus on
by hoornet on
by steveminer on
by steveminer on
by TravisHeeter on
by Dimagog on

Note by steveminer

rest is generally preferred over next. See the Clojure.org documentation on writing lazy functions.

Also, the topic is covered on StackOverflow.com: rest vs. next.

See also


Content from the matching ClojureDocs page, with authors credited on each contribution.