excludes-max
ErrorsCollection

excludes-max

Synthesised documentation from type/Range

From type/Range

See Original text in context

method excludes-max(Range:D: --> Bool:D)

Returns True if the end point is excluded from the range, and False otherwise.

say (1..5).excludes-max;                          # OUTPUT: «False␤» 
say (1^..^5).excludes-max;                        # OUTPUT: «True␤»