Loops/Foreach: Difference between revisions
m
→{{header|Raku}}: typo
m (→{{header|ALGOL 68}}: link) |
Thundergnat (talk | contribs) m (→{{header|Raku}}: typo) |
||
Line 2,275:
for @collection { .say };</lang>
Iteration can also be done with hyperoperators. In this case it's a candidate for autothreading and as such, execution order may vary. The resulting list will be in order.
<lang
@collection>>.=&infix:<+>(2); # increment each element by 2</lang>
|