palindromes-0.4: Finding palindromes in strings

Safe HaskellNone

Data.Algorithms.Palindromes.Palindromes

Synopsis

Documentation

palindrome :: Maybe Flag -> Maybe Flag -> Maybe Flag -> Maybe Flag -> Maybe Flag -> Maybe Flag -> ByteString -> StringSource

palindrome captures all possible variants of finding palindromes.

palindromesAroundCentres :: Maybe Flag -> Maybe Flag -> Maybe Flag -> Maybe Flag -> ByteString -> ByteString -> Array Int Int -> [Int]Source

palindromesAroundCentres is the central function of the module. It returns the list of lenghths of the longest palindrome around each position in a string.