Skip to content

Instantly share code, notes, and snippets.

@Licenser
Created January 12, 2010 05:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Licenser/274938 to your computer and use it in GitHub Desktop.
Save Licenser/274938 to your computer and use it in GitHub Desktop.
(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