Skip to content

Instantly share code, notes, and snippets.

@bgmarx
Created January 7, 2015 09:43
Show Gist options
  • Save bgmarx/3bdf1fe5271b2cbb9bd5 to your computer and use it in GitHub Desktop.
Save bgmarx/3bdf1fe5271b2cbb9bd5 to your computer and use it in GitHub Desktop.
(defn halve [a-seq]
(let [half (int (/ (count a-seq))) 2]
(vector (my-take half a-seq) (my-drop half a-seq))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment