isPalindrome (x1 : xs) = x1 == last xs && isPalindrome (init xs) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
isPalindrome (x1 : xs) = x1 == last xs && isPalindrome (init xs) |