Skip to content

clojure.core/take

View this page on ClojureDocs

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

Returns a lazy sequence of the first n items in coll, or all items if there are fewer than n. Returns a stateful transducer when no collection is provided.

Examples

by jandot on
by citizen428 on
by bsvingen on
by cljlc on . May have evaluation errors.

See also


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