3 ms·
A function that yields instead of returning values results in an iterator. One does not need to define a class at all.
by BrandonM 15y ago
A function that yields instead of returning values results in an iterator. One does not need to define a class at all.