Created
January 12, 2010 05:18
-
-
Save Licenser/274938 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 chimney [something-to-burn] | |
(reduce #(conj %1 (cond | |
(= %2 'wood) '(heat ashes smoke) | |
(= %2 'tnt) (chimney something-to-burn) | |
true nil)) '() something-to-burn)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment