Created
May 4, 2015 14:33
-
-
Save whysoserious/1d14ad2d086260d39667 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
;; to sie dlawi przy wiekszej liscie albo wektorze | |
(defn buildlist [x acc] | |
(if (= x 0) acc | |
(buildlist (dec x) (cons x acc)))) | |
;; to dziala ok | |
(defn buildlist2 [x acc] | |
(if (= x 0) acc | |
(recur (dec x) (cons x acc)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment