#49
Split a sequence
 

Difficulty:Easy
Topics:seqs core-functions


Write a function which will split a sequence into two parts.
test not run
(= (__ 3 [1 2 3 4 5 6]) [[1 2 3] [4 5 6]])
test not run
(= (__ 1 [:a :b :c :d]) [[:a] [:b :c :d]])
test not run
(= (__ 2 [[1 2] [3 4] [5 6]]) [[[1 2] [3 4]] [[5 6]]])
Special Restrictions
  • split-at


  • Code which fills in the blank: