Created
January 7, 2015 09:45
-
-
Save bgmarx/eb16649a5e2f3f5e0970 to your computer and use it in GitHub Desktop.
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
(defn my-take [n coll] | |
(if (or (empty? coll) | |
(zero? n)) | |
'() | |
(cons (first coll) (my-take (dec n) (rest coll))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment