Determine if a string has all unique characters: Difference between revisions
Determine if a string has all unique characters (view source)
Revision as of 18:08, 30 December 2019
, 4 years ago→Python :: Functional
m (→{{header|JavaScript}}: Update to preamble of draft – folding a string down to a dictionary of indices) |
|||
Line 1,141:
def duplicatedCharIndices(s):
'''Just the first duplicated character, and
the
'''
def go(xs):
Line 1,298:
def duplicatedCharIndices(s):
'''Just the first duplicated character, and
the
'''
def go(dct, ic):
|