Created
July 28, 2009 18:44
-
-
Save carlism/157594 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 build [size operation] | |
(if (== size 1) (list (eval operation)) | |
(concat (list (eval operation)) (build (dec size) operation)) | |
) | |
) | |
(println (build 25 '(int (rand 2048)))) | |
(println (build 2 '(int (rand 20)))) | |
(println (build 25 20)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment