Iterators: Difference between revisions
m
→{{header|Raku}}: typo
Thundergnat (talk | contribs) m (→{{header|Raku}}: Expand verbiage a bit, contrast explicit iterators with object slice notation) |
Thundergnat (talk | contribs) m (→{{header|Raku}}: typo) |
||
Line 241:
=={{header|Raku}}==
Raku has iterators, but is rare for casual users to ever
Rakus iterators are one direction only (not reversible), since they are designed to be able to work with infinite streams. It is difficult to reverse a stream that has no end. If the object / collection is finite, it may be reversed, but that is a separate operation from iteration.
|