def drop(num):
    """Produce a sequence with the same elements as the input sequence,
    but omitting the first num elements.
    """
    def dropper(input):
        p = num
        for elt in input:
            if p > 0:
                p -= 1
            else:
                yield elt

    return dropper