user=> (split-with (partial >= 3) [1 2 3 4 5]) [(1 2 3) (4 5)]
Returns a vector of [(take n coll) (drop n coll)]
Splits string on a regular expression. Optional argument limit is
Returns a lazy sequence of successive items from coll while (pred i
Returns a lazy sequence of the items in coll starting from the first
(defn split-with "Returns a vector of [(take-while pred coll) (drop-while pred coll)]" {:added "1.0" :static true} [pred coll] [(take-while pred coll) (drop-while pred coll)])
Comments top
No comments for split-with. Log in to add a comment.