Zdobądź 3 element z generatora w Python

>>> gen = (x for x in range(10))
>>> index = 5
>>> next(itertools.islice(gen, index, None))
5
gdfelt