Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python geet second item in generator

>>> gen = (x for x in range(10))
>>> index = 5
>>> next(itertools.islice(gen, index, None))
5
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #geet #item #generator
ADD COMMENT
Topic
Name
8+3 =