Documentation for method lazy assembled from the following pages:

Role: Iterable §

From Iterable

(Iterable) method lazy §

Defined as:

method lazy(--> Iterable)

Returns a lazy iterable wrapping the invocant.

say (1 ... 1000).is-lazy;      # OUTPUT: «False␤» 
say (1 ... 1000).lazy.is-lazy# OUTPUT: «True␤»