Determine if a string has all the same characters: Difference between revisions
Content deleted Content added
→{{header|Python}}: Added a functional draft in Python |
m →Functional Python: (Edited a docstring) |
||
Line 278:
# firstDifferingCharLR :: String -> Either String Char
def firstDifferingCharLR(s):
'''Either
'''
groups = list(groupby(s))
|