Longest palindromic substrings: Difference between revisions
Content added Content deleted
m (→{{header|Python}}: Added a functionally composed Python draft.) |
|||
Line 313: | Line 313: | ||
the given string, tupled with the |
the given string, tupled with the |
||
maximal length. |
maximal length. |
||
Non |
Non alphanumerics are included here. |
||
''' |
''' |
||
k = s.lower() |
k = s.lower() |
||
Line 403: | Line 403: | ||
return g |
return g |
||
return go |
return go |
||
# ---------------------- FORMATTING ---------------------- |
# ---------------------- FORMATTING ---------------------- |
||
Line 408: | Line 409: | ||
# fTable :: String -> (a -> String) -> |
# fTable :: String -> (a -> String) -> |
||
# (b -> String) -> (a -> b) -> [a] -> String |
# (b -> String) -> (a -> b) -> [a] -> String |
||
def fTable(s): |
def fTable(s): |
||
'''Heading -> x display function -> fx display function -> |
'''Heading -> x display function -> fx display function -> |