Last active
December 22, 2015 16:49
-
-
Save Jabbslad/6501899 to your computer and use it in GitHub Desktop.
http://www.4clojure.com solutions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; 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