function | since v0.0-1236 | clojure.core.reducers/take-while | Edit |
(take-while pred)
(take-while pred coll)
Ends the reduction of coll when (pred val) returns logical false.
(defcurried take-while
{}
[pred coll]
(reducer coll
(fn [f1]
(rfn [f1 k]
([ret k v]
(if (pred k v)
(f1 ret k v)
(reduced ret)))))))