Foreach
say $_ for @collection;for @collection -> $currentElement { say $currentElement; }.say for @collection;
for @collection { .say };@collection>>.say;
@collection>>.=&infix:<+>(2); # increment each element by 2Last updated
say $_ for @collection;for @collection -> $currentElement { say $currentElement; }.say for @collection;
for @collection { .say };@collection>>.say;
@collection>>.=&infix:<+>(2); # increment each element by 2Last updated