Created
July 6, 2014 14:44
-
-
Save rockBreaker/28fd5863e7a007147a6a to your computer and use it in GitHub Desktop.
pretty horrible author->string example
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 author->string | |
[author] | |
(if | |
(contains? author :birth-year) | |
(str '"(" (get author :birth-year) '" - "(get author :death-year) '")") | |
(str (:name author))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment