[Haskell-beginners] A question about pattern matching

bahadýr altan doaltan at yahoo.co.uk
Sat Feb 18 21:16:05 CET 2012


Hello. I'm wondering what " (Eq a) =>" part in the code below does.. I couldn't figure it myself.. Thanks in advance :)
isPalindrome :: (Eq a) => [a] -> Bool isPalindrome xs = xs == (reverse xs)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20120218/9dd67659/attachment-0001.htm>


More information about the Beginners mailing list