method bounds

Documentation for method bounds, assembled from the following types:

class Range

From Range

(Range) method bounds

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

Returns a list consisting of the start and end point.

say (1..5).bounds;                                # OUTPUT: «(1 5)␤» 
say (1^..^5).bounds;                              # OUTPUT: «(1 5)␤»