Skip to content

Commit 454e12c

Browse files
committed
Document // as a prefix op
1 parent 6cfe5f1 commit 454e12c

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

doc/Language/operators.pod6

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ level.
3939
Method call | left | .meth .\+ .? .* .() .[] .{} .<> .«» .:: .= .^ .: i
4040
Autoincrement | non | \+\+ --
4141
Exponentiation | right | **
42-
Symbolic unary | left | ! \+ - ~ ? \| \|\| \+^ ~^ ?^ ^
42+
Symbolic unary | left | ! \+ - ~ ? \| \|\| \+^ ~^ ?^ ^ //
4343
Dotty infix¹ | left | .= .
4444
Multiplicative | left | * × / ÷ % %% \+& \+< \+> ~& ~< ~> ?& div mod gcd lcm
4545
Additive | left | \+ - − \+\| \+^ ~\| ~^ ?\| ?^
@@ -1161,6 +1161,17 @@ Coerces the argument to L<Bool|/type/Bool> by calling the C<Bool> method on it,
11611161
and returns the negation of the result.
11621162
Note that this collapses L<Junction|/type/Junction>s.
11631163
1164+
=head2 prefix C«//»
1165+
1166+
multi sub prefix:<//>(Any --> Bool:D)
1167+
1168+
X<Boolean context operator|Operators,Boolean context operator>.
1169+
1170+
Available as of 6.e language version (early implementation exists in Rakudo
1171+
compiler 2022.12+).
1172+
1173+
Coerces the argument to L<Boolean|/type/Bool> by calling the C<defined> method on it.
1174+
11641175
=head2 prefix C«+»
11651176
11661177
multi sub prefix:<+>(Any --> Numeric:D)

0 commit comments

Comments
 (0)