Created
September 11, 2013 15:13
-
-
Save MuffinTheMan/6525037 to your computer and use it in GitHub Desktop.
This may or may not be a correct program in Haskell (my compiler isn't working, so I can't test it). It's supposed to check if the given input is a palindrome.
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
pal input = if (input == reverse input) then True else False |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment