3 ms·
In C# and Python you can write an iterator using `yield` keyword. E.g. for(i in array) yield i The language then transforms this into an implementation of
by lostmsu 6y ago
In C# and Python you can write an iterator using `yield` keyword. E.g.
for(i in array) yield i
The language then transforms this into an implementation of the base iterator interface under the hood.