📘 Infix operators min and max in Perl 6

📘 Infix operators min and max in Raku

N. B. Perl 6 has been renamed to Raku. Click to read more.


min and max return, correspondently, the minimum and maximum value of their operands.

say 20 min 10;         # 10
say 'three' max 'two'; # two (sorted alphabetically)

Leave a Reply