method bool-only

Documentation for method bool-only, assembled from the following types:

role Iterator

From Iterator

(Iterator) method bool-only

By default is not implemented, but expected implementation for types that do this role is: Defined as:

method bool-only(--> Bool:D{ ... }

If implemented, it is expected to return True if the iterator can still produce values without actually producing them. It will be used in situations where the encompassing Seq is evaluated in a Bool context.

Important: it's expected the Iterators that implement this method can produce that answer without producing any values. In other words, it's expected that the iterator can produce as many values as it could even if this method was not called.

The Iterator role does not implement this method.