Enumerators
suggest changeVersions
[{“Name”:“1.9”,“GroupName”:null},{“Name”:“2.0”,“GroupName”:null},{“Name”:“2.1”,“GroupName”:null},{“Name”:“2.2”,“GroupName”:null},{“Name”:“2.3”,“GroupName”:null},{“Name”:“2.4”,“GroupName”:null}]
Introduction
An Enumerator
is an object that implements iteration in a controlled fashion.
Instead of looping until some condition is satisfied, the object enumerates values as needed. Execution of the loop is paused until the next value is requested by the owner of the object.
Enumerators make infinite streams of values possible.
Parameters
Parameter | Details |
——— | —–– |yield
| Responds to yield
, which is aliased as <<
. Yielding to this object implements iteration. |
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents