Created
April 6, 2016 00:42
-
-
Save 6ewis/4e280967cf6f33aed05463f3e4ec41ab 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
(fn | |
palindrome?[lst] | |
(if | |
(or (empty? lst) (empty? (rest lst))) | |
true | |
(if | |
(not= (first lst) (last lst)) | |
false | |
(palindrome? | |
(rest (butlast lst)) | |
) | |
) | |
) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment