Skip to content

clojure.core/nthrest

View this page on ClojureDocs

Type: function Added: Clojure 1.3 Examples: 4 Runnable: 4
([coll n])

Returns the nth rest of coll, coll when n is 0.

Examples

by jmglov on
by phreed on
by reborg on
by jimka2001 on

Note by TimMc

This differs from clojure.core/drop in that it immediately drops the head of the seq, instead of doing so on the first call to first or seq.

See also


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