Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

actual python iterators


looking_for = iter(when_to_change_the_mode)
current = next(looking_for)
for l in listA:
    do_something(current)
    if l == current:
        current = next(looking_for)

Source by codefantasy.org #
 
PREVIOUS NEXT
Tagged: #actual #python #iterators
ADD COMMENT
Topic
Name
7+1 =