πŸ“˜ Shortcut operator || in Perl 6

πŸ“˜ Shortcut operator || in Raku

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


|| returns the first operand, which is True in a Boolean context. The remaining operands are not evaluated.

say 10 || 0; # 10
say 0 || 10; # 10

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