Skip to content

Instantly share code, notes, and snippets.

@Jabbslad
Last active December 22, 2015 16:49
Show Gist options
  • Save Jabbslad/6501899 to your computer and use it in GitHub Desktop.
Save Jabbslad/6501899 to your computer and use it in GitHub Desktop.
; 43: Write a function which reverses the interleave process into x number of subsequences.
(fn [coll n]
(apply map list (partition n coll)))
; 66: Given two integers, write a function which returns the greatest common divisor.
(fn [x y]
(if (= y 0) x
(recur y (rem x y))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment