In Range§
See primary documentation in context for method bounds
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)»
See primary documentation in context for method bounds
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)»