Documentation for method last

Documentation for method last, assembled from the following types:

class Label

From Label

(Label) method last

Defined as:

method last(Label:)

Terminate the execution of the loop associated with the label.

MY-LABEL:
for 1..10 {
    last MY-LABEL if $_ > 5# does only 5 iteration 
    say $_;
}