Created
March 13, 2013 15:40
-
-
Save funrep/5153347 to your computer and use it in GitHub Desktop.
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
isPal :: Eq a => [a] -> Bool | |
isPal [] = True | |
isPal xs = if (head xs) /= (last xs) then False | |
else if (head xs) == (last xs) then isPal $ drop 1 (init xs) | |
else True |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment