Foreach
Raku leaves off the each
from foreach
, leaving us with for
instead. The variable $_
refers to the current element, unless you assign a name to it using ->
.
Raku will do it's best to put the topic at the right spot.
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.
Last updated