Created
February 26, 2009 20:28
-
-
Save wfarr/71090 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 isPal [str] | |
(cond (<= (.length str) 1) true | |
:else | |
(cond (= (Character/toLowerCase (first str)) | |
(Character/toLowerCase (last str))) | |
(isPal (subs str 1 (- (.length str) 1))) | |
:else false))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment