method infinite

Documentation for method infinite, assembled from the following types:

class Range

From Range

(Range) method infinite

method infinite(Range:D: --> Bool:D)

Returns True if either end point was declared with Inf or *.

say (1..5).infinite;                              # OUTPUT: «False␤» 
say (1..*).infinite;                              # OUTPUT: «True␤»