. . "Languages such as C# and Python have a yield keyword for this purpose." . . .