bounds
ErrorsCollection

bounds

Synthesised documentation from type/Range

From type/Range

See Original text in context

method bounds()

Returns a list consisting of the start and end point.

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