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.
True
False
say (1..5).excludes-max; # OUTPUT: «False» say (1^..^5).excludes-max; # OUTPUT: «True»