Teacup rim text: Difference between revisions

m
(→‎{{header|Python}}: Appended a Python draft (functional composition))
Line 649:
# circularWords :: [String] -> [String]
def circularWords(ws):
'''The subset of those words in wsthe whichgiven are circular.list
which are circular.
'''
lexicon = set(ws)
Line 658 ⟶ 659:
def isCircular(lexicon):
'''True if the given word contains more than
two characters, and isall foundof inits the lexicon.rotations
are found in the lexicon.
'''
def go(s):
9,655

edits