| Copyright | (c) 2025 Mirko Westermeier |
|---|---|
| License | MIT |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Palindrome
Description
Comprehensive palindrome detection library.
Synopsis
- isPalindrome :: Eq a => [a] -> Bool
Documentation
isPalindrome :: Eq a => [a] -> Bool Source #
Checks whether a given list of comparable things is a palindrome (is the same after reversing the structure).
>>>isPalindrome "racecar"True
>>>isPalindrome "()()"False
>>>isPalindrome [1,2,3,2,1]True
>>>isPalindrome []True
>>>isPalindrome "a"True