Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

8 lines (7 sloc) 0.231 kb
isPalindrome :: (Eq a) => [a] -> Bool
isPalindrome x = x == reverse x
main = do
print $ isPalindrome "abcd"
print $ isPalindrome "abba"
print $ isPalindrome "aba"
print $ isPalindrome ""
Jump to Line
Something went wrong with that request. Please try again.