πŸ“˜ 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 *

Retype the CAPTCHA code from the image
Change the CAPTCHA codeSpeak the CAPTCHA code