method skip-one
Documentation for method skip-one
assembled from the following types:
role Iterator
From Iterator
(Iterator) method skip-one
Defined as:
method skip-one(Iterator: --> Mu)
Should skip producing one value. The return value should be truthy if the skip was successful and falsy if there were no values to be skipped:
my = <a b>.iterator;say .skip-one; say .pull-one; say .skip-one# OUTPUT: «1b0»
The Iterator role implements this method as a call pull-one
and returning whether the value obtained was not IterationEnd
.