Skip to content

clojure.core/nthnext

View this page on ClojureDocs

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

Returns the nth next of coll, (seq coll) when n is 0.

Examples

by zmila on
by phreed on

Note by Dimagog

nthnext is similar to drop. But nthnext is eager, while drop is lazy.

Also parameters are in opposite order.

See also


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