huskar_api/models/utils.py
def dedupleft(iterable, marker):
    """Deduplicates the marker on the left of an iterable object."""
    iterator = peekable(iterable)
    for x in iterator:
        if iterator.peek(None) != marker:
            break
    return itertools.chain([marker], iterator)
Deduplicates the marker on the left of an iterable object.
Deduplicates the marker on the left of an iterable object.
Deduplicates the marker on the left of an iterable object .
def dedupleft(iterable, marker):
    iterator = peekable(iterable)
    for x in iterator:
        if iterator.peek(None) != marker:
            break
    return itertools.chain([marker], iterator)
def dedupleft ( iterable , marker ) : iterator = peekable ( iterable ) for x in iterator : if iterator . peek ( None ) != marker : break return itertools . chain ( [ marker ] , iterator )
Deduplicates the marker on the left of an iterable object.
Deduplicates the marker on the left of an iterable object .
"""Deduplicates the marker on the left of an iterable object."""
iterable
marker