Determine if a string has all unique characters: Difference between revisions

Content deleted Content added
Hout (talk | contribs)
m →‎{{header|JavaScript}}: Update to preamble of draft – folding a string down to a dictionary of indices
Hout (talk | contribs)
Line 1,141:
def duplicatedCharIndices(s):
'''Just the first duplicated character, and
the first two indices of its occurrence, or
of Nothing if there are no duplications.
'''
def go(xs):
Line 1,298:
def duplicatedCharIndices(s):
'''Just the first duplicated character, and
the first two indices of its occurrence, or
of Nothing if there are no duplications.
'''
def go(dct, ic):