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

m
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 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):
9,659

edits