Skip to content

Instantly share code, notes, and snippets.

@elvinio
Created February 18, 2015 05:25
Show Gist options
  • Save elvinio/b8f8cd8053e6ebdeec31 to your computer and use it in GitHub Desktop.
Save elvinio/b8f8cd8053e6ebdeec31 to your computer and use it in GitHub Desktop.
palindrome :: (Eq a) => [a]->Bool
palindrome (xs)
| xs == reverse(xs) = True
| otherwise = False
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment