def take_nth(n, coll):
    """
    Returns a generator of every ``n``th item in ``coll``.
    """
    if n <= 0:
        for e in coll:
            while True:
                yield e
    for i, e in enumerate(coll):
        if i % n == 0:
            yield e
