Documentation for method pull-one
Documentation for method pull-one, assembled from the following types:
method pull-one(Iterator: --> Mu)
This method stub ensures that classes implementing the
Iterator role provide a method named
pull-one method is supposed to return the next value if available, or the sentinel value
IterationEnd if no more elements are available.
my = (1 .. 3).iterator;say .pull-one; # OUTPUT: «1␤»say .pull-one; # OUTPUT: «2␤»say .pull-one; # OUTPUT: «3␤»dd .pull-one; # IterationEnd