Portability | portable |
---|---|
Stability | experimental |
Maintainer | johan@jeuring.net |
Safe Haskell | Safe-Infered |
Data.Algorithms.Palindromes.Palindromes
Description
- longestPalindrome :: (Eq a, Show a) => [a] -> String
- longestPalindromes :: (Eq a, Show a) => Int -> [a] -> String
- lengthLongestPalindrome :: Eq a => [a] -> String
- lengthLongestPalindromes :: Eq a => [a] -> String
- longestTextPalindrome :: String -> String
- longestTextPalindromes :: Int -> String -> String
- longestWordPalindrome :: String -> String
- longestWordPalindromes :: Int -> String -> String
- palindromesAroundCentres :: Eq a => Array Int a -> [Int]
Documentation
longestPalindrome :: (Eq a, Show a) => [a] -> StringSource
longestPalindrome returns the longest palindrome in a string.
longestPalindromes :: (Eq a, Show a) => Int -> [a] -> StringSource
longestPalindromes returns the longest palindrome around each position in a string. The integer argument is used to only show palindromes of length at least this integer.
lengthLongestPalindrome :: Eq a => [a] -> StringSource
lengthLongestPalindrome returns the length of the longest palindrome in a string.
lengthLongestPalindromes :: Eq a => [a] -> StringSource
lengthLongestPalindromes returns the lengths of the longest palindrome around each position in a string.
longestTextPalindrome :: String -> StringSource
longestTextPalindrome returns the longest text palindrome in a string, ignoring spacing, punctuation symbols, and case of letters.
longestTextPalindromes :: Int -> String -> StringSource
longestTextPalindromes returns the longest text palindrome around each position in a string. The integer argument is used to only show palindromes of length at least this integer.
longestWordPalindrome :: String -> StringSource
longestWordPalindrome returns the longest text palindrome preceded and followed by non-letter symbols (if any).
longestWordPalindromes :: Int -> String -> StringSource
longestWordPalindromes returns the longest word palindrome around each position in a string. The integer argument is used to only show palindromes of length at least this integer.