palindrome-check
Copyright(c) 2025 Mirko Westermeier
LicenseMIT
Safe HaskellSafe-Inferred
LanguageHaskell2010

Palindrome

Description

Comprehensive palindrome detection library.

Synopsis

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