Skip to content

Instantly share code, notes, and snippets.

@carlism
Created July 28, 2009 18:44
Show Gist options
  • Save carlism/157594 to your computer and use it in GitHub Desktop.
Save carlism/157594 to your computer and use it in GitHub Desktop.
(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