clojure.core.reducers/take-while

functionsince v0.0-1236 clojure.core.reducers/take-whileEdit
(take-while pred)
(take-while pred coll)

Source docstring:
Ends the reduction of coll when (pred val) returns logical false.
Source code @ clojurescript:src/main/cljs/clojure/core/reducers.cljs
(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)))))))