Skip to content

clojure.core/drop-while

View this page on ClojureDocs

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

Returns a lazy sequence of the items in coll starting from the first item for which (pred item) returns logical false. Returns a stateful transducer when no collection is provided.

Examples

by nipra on
by ibercode on

Note by Jacolyte

The description of this function is throwing me off. I think it should say: returns a sequence of items from coll dropping the initial items that evaluate to true when passed to pred, once a non-true value is encountered, the rest of the list is returned.

See also


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