3 ms·
And if foo(z) is consuming a generator somehow (e.g. it's next(g)) then you can't call it twice without side effects.
by roman_g 8y ago
And if foo(z) is consuming a generator somehow (e.g. it's next(g)) then you can't call it twice without side effects.