top | item 37099266

(no title)

_0w8t | 2 years ago

I.e. C# and many other languages transform a function with the yield statement into a state machine implementing the iteration protocol.

This proposal does the opposite. It transforms the loop body into a closure passed into the iterator.

discuss

order

No comments yet.