Skip to content

Instantly share code, notes, and snippets.

@jmaicher
Created January 3, 2014 11:52
Show Gist options
  • Save jmaicher/8236727 to your computer and use it in GitHub Desktop.
Save jmaicher/8236727 to your computer and use it in GitHub Desktop.
Produce the number 2014 without any numbers in your source code. Not very short, but whatever :-) http://codegolf.stackexchange.com/questions/17005/produce-the-number-2014-without-any-numbers-in-your-source-code
(let [ I-WISH (fn [x] (* x (mod (int \#) (int \!))))
YOU-A (fn [x] (reduce + (map int x)))]
(I-WISH (YOU-A [\H \A \P \P \Y \N \E \W \Y \E \A \R \) \)])))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment