Last active
September 10, 2018 11:43
-
-
Save littleli/6498ceb90a99498e37dab15d75106824 to your computer and use it in GitHub Desktop.
Palindrome detector http://www.4clojure.com/problem/27
This file contains hidden or 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
(fn [input] | |
(if (coll? input) | |
(= input (reverse input)) | |
(= input (clojure.string/join "" (reverse input))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment