๐Ÿ“˜ 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

Your email address will not be published. Required fields are marked *