Teacup rim text: Difference between revisions
m
→Functional Python
(→{{header|Python}}: Appended a Python draft (functional composition)) |
|||
Line 649:
# circularWords :: [String] -> [String]
def circularWords(ws):
'''The subset of those words in
which are circular.
'''
lexicon = set(ws)
Line 658 ⟶ 659:
def isCircular(lexicon):
'''True if the given word contains more than
two characters, and
are found in the lexicon.
'''
def go(s):
|