We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4b6bd9 commit 4ca111dCopy full SHA for 4ca111d
doc/Type/Range.pod6
@@ -132,13 +132,15 @@ Returns C<True> if both end points are C<Int> values.
132
133
=head2 method int-bounds
134
135
- method bounds(Range:D: --> Positional)
+ method int-bounds(Range:D: --> Positional)
136
137
If the C<Range> is an integer range (as indicated by L<is-int>), then this
138
method returns a list with the first and last value it will iterate over
139
(taking into account L<excludes-min> and L<excludes-max>). Returns a
140
Failure if it is not an integer range.
141
142
+ say (2..5).int-bounds; # OUTPUT: «(2 5)»
143
+ say (2..^5).int-bounds; # OUTPUT: «(2 4)»
144
145
=head2 method minmax
146
0 commit comments