split-with

functionsince v0.0-927 clojure.core/split-withEdit
(split-with pred coll)

Details:

Returns a vector of [(take-while pred coll) (drop-while pred coll)]


See Also:


Source docstring:
Returns a vector of [(take-while pred coll) (drop-while pred coll)]
Source code @ clojurescript:src/main/cljs/cljs/core.cljs
(defn split-with
  [pred coll]
  [(take-while pred coll) (drop-while pred coll)])