Concept Flow - Yield keyword behavior
Function called
Start execution
Yield value
Pause function
Caller receives value
Caller requests next
Resume function
Repeat yield or end
Function ends
Iteration stops
The function runs until it hits a yield, returns a value, pauses, then resumes when the caller asks for the next value, repeating until done.