Documentation for method excludes-max
assembled from the following pages:
Class: Range §
From Range
(Range) method excludes-max §
method excludes-max(Range: --> Bool)
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»