Documentation for method is-lazy, assembled from the following types:
method is-lazy(Iterator: --> Bool)
True for iterators that consider themselves lazy, and
Built-in operations that know that they can produce infinitely many values return
True here, for example
say (1 .. 100).is-lazy; # OUTPUT: «False␤»say (1 .. Inf).is-lazy; # OUTPUT: «True␤»
The Iterator role implements this method returning
False, indicating a non-lazy iterator.
method is-lazy(Seq: --> Bool)
True if the sequence is lazy and potentially infinite, and
False otherwise. If called on an already consumed sequence, throws an error of type X::Seq::Consumed.