def nth(n, seq):
    try:
        return seq[n]
    except __HOLE__:
        return None
    except TypeError:
        return next(islice(seq, n, None), None)
dataset/ETHPy150Open Suor/funcy/funcy/seqs.py/nth