1.3.0 permalink Arrow_down_16x16

split-at

clojure.core

  • (split-at n coll)
Returns a vector of [(take n coll) (drop n coll)]

1 Example top

  • user=> (split-at 2 [1 2 3 4 5])
    [(1 2) (3 4 5)]
Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/core.clj:2564 top

(defn split-at
  "Returns a vector of [(take n coll) (drop n coll)]"
  {:added "1.0"
   :static true}
  [n coll]
    [(take n coll) (drop n coll)])
Vars in clojure.core/split-at:
Used in 0 other vars

Comments top

No comments for split-at. Log in to add a comment.