from typing import Iterable


def nth(struct: Iterable, indx: int):
    """Return nth item of `struct`.
    """
    it = iter(struct)
    i = 0
    x = None
    while i <= indx:
        try:
            x = next(it)
            i += 1
        except StopIteration:
            break
    return x