Skip to content

Commit 7e3cef9

Browse files
committed
Add boolean logical AND operator
1 parent 2c08353 commit 7e3cef9

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

doc/Language/operators.pod6

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1322,6 +1322,15 @@ and then performs a numeric bitwise right shift on the bits of the buffer.
13221322
13231323
Please note that this has not yet been implemented.
13241324
1325+
=head2 infix C«?&»
1326+
1327+
multi sub infix:<?&>(Mu $x = Bool::True)
1328+
multi sub infix:<?&>(Mu \a, Mu \b)
1329+
1330+
X<Boolean logical AND operator>. Coerces the argument(s) to L<Bool|/type/Bool>
1331+
and performs logical AND on them: it will return True if and only if both
1332+
arguments are true. It returns identity on a single argument.
1333+
13251334
=head2 infix C«gcd»
13261335
13271336
multi sub infix:<gcd>($a, $b --> Int:D)

0 commit comments

Comments
 (0)