Skip to content

clojure.core/take-while

View this page on ClojureDocs

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

Returns a lazy sequence of successive items from coll while (pred item) returns logical true. pred must be free of side-effects. Returns a transducer when no collection is provided.

Examples

by dpritchett on
by patazj on
by henghuang on . May have evaluation errors.
by ibercode on
by cljlc on . May have evaluation errors.

See also


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