isPalindrome x = if ((head x) == (last x))
    then isPalindrome (tail (reverse (tail x)))
    else False
isPalindrome x = if ((head x) == (last x))
    then isPalindrome (tail (reverse (tail x)))
    else False
isPalindrome x = if ((head x) == (last x))
    then isPalindrome (tail (reverse (tail x)))
    else False