You're viewing version 1.2.0 of split-at. The latest stable version of Clojure Core is 1.3.0.
1.2.0 Arrow_down_16x16



  • (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:2218 top

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

Comments top

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