function | since v0.0-927 | clojure.core/split-with | Edit |
(split-with pred coll)
Returns a vector of [(take-while pred coll) (drop-while pred coll)]
Returns a vector of [(take-while pred coll) (drop-while pred coll)]
(defn split-with
[pred coll]
[(take-while pred coll) (drop-while pred coll)])