infinite
ErrorsCollection

infinite

Synthesised documentation from type/Range

From type/Range

See Original text in context

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

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

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