Skip to content

Commit 6736c65

Browse files
committed
Improve minmax: example with same values.
1 parent fdbf475 commit 6736c65

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

doc/Language/operators.pod6

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1853,6 +1853,13 @@ For instance:
18531853
'z' minmax 'k'; # "k".."z"
18541854
=end code
18551855
1856+
If the lowest and highest values coincide, the operator returns a L<Range>
1857+
made by the same value:
1858+
1859+
=begin code
1860+
1 minmax 1; # 1..1
1861+
=end code
1862+
18561863
=head1 Conditional Operator Precedence
18571864
18581865
=head2 infix C<?? !!>

0 commit comments

Comments
 (0)