Lazy Line
yield, lazy values, keys, send(), getReturn(), yield from and why you can't rewind.
0 / 8 levels · 0 / 24 ★Start playing ›
Lazy Line
A generator is a vending machine that makes each item only when you press the button. Calling the function just sets the machine up. Each loop step presses the button: the machine runs to the next yield, hands you one item and pauses right there.
Your rulebook
Finish a level to add its rule. Fill the book and you can explain all of this in an interview.
- 1Finish Calling it runs nothing to unlock this rule.
- 2Finish Take turns to unlock this rule.
- 3Finish Labels on the items to unlock this rule.
- 4Finish Put something in to unlock this rule.
- 5Finish The receipt to unlock this rule.
- 6Finish A machine inside a machine to unlock this rule.
- 7Finish An endless machine to unlock this rule.
- 8Finish No going back to unlock this rule.