def last(seq):
    try:
        return seq[-1]
    except __HOLE__:
        return None
    except TypeError:
        item = None
        for item in seq:
            pass
        return item
dataset/ETHPy150Open Suor/funcy/funcy/seqs.py/last