Skip to main content

take-while

functionv1.0

clojure.core/take-while

Available in:BBCLJCLJS
(take-while [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.

No examples yet. Be the first to add one!