method int-bounds

Documentation for method int-bounds assembled from the following types:

class Range

From Range

(Range) method int-bounds

method int-bounds(Range:D: --> Positional)

If the Range is an integer range (as indicated by is-int), then this method returns a list with the first and last value it will iterate over (taking into account excludes-min and excludes-max). Returns a Failure if it is not an integer range.

say (2..5).int-bounds;                            # OUTPUT: «(2 5)␤» 
say (2..^5).int-bounds;                           # OUTPUT: «(2 4)␤»