News for hackers. Stuff that matters.
Re:Ask HN: JS's for-of loop conceptually flawed, or is it ju... by tantalor on Tuesday June 07, 2016 @04:01PM (#11857328)
Same in python,

    >>> def gen(): yield 1; yield 2; yield 3
    ... 
    >>> g = gen()
    >>> for el in g: print el
    ... 
    1
    2
    3
    >>> for el in g: print el
    ... 
    >>>

There are no comments on this comment yet.