method skip-at-least

Documentation for method skip-at-least, assembled from the following types:

role Iterator

From Iterator

(Iterator) method skip-at-least

Defined as:

method skip-at-least(Iterator:D: $targetint $to-skip --> Mu)

Skips $to-skip values. The return value is truthy if skip was successful and falsy if there were not enough values to skip:

my $i = <a b c>.iterator;
say $i.skip-at-least(2); say $i.pull-onesay $i.skip-at-least(20);
# OUTPUT: «1␤c␤0␤»