Skip to content

Commit

Permalink
add a few operators to the index
Browse files Browse the repository at this point in the history
  • Loading branch information
gfldex committed Jun 23, 2016
1 parent e15bc8f commit af0228e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion doc/Language/operators.pod
Expand Up @@ -500,7 +500,8 @@ The operator for calling one method, C<$invocant.method>.X<|method call>
Technically this is not an operator, but syntax special-cased in the compiler.
=head2 postfix X<C«.&»>
X«|postfix .&»
=head2 postfix C«.&»
The operator to call a subroutine (with at least one positional argument) like
a method. The invocant will be bound to the first positional argument.
Expand All @@ -521,6 +522,7 @@ C<$invocant = $invocant.method>, similar to L<C<=>>.
Technically this is not an operator, but syntax special-cased in the compiler.
X«|postfix .^»
=head2 postfix C«.^»
A X<meta-method call>. C<$invocant.^method> calls C<method> on C<$invocant>'s
Expand All @@ -529,20 +531,23 @@ for more information.
Technically this is not an operator, but syntax special-cased in the compiler.
X«|postfix .?»
=head2 postfix C«.?»
X<Potential method call>s. C<$invocant.?method> calls method C<method> on
C<$invocant> if it has a method of such name. Otherwise it returns L<Nil>.
Technically this is not an operator, but syntax special-cased in the compiler.
X«|postfix .+»
=head2 postfix C«.+»
C<$invocant.+method> calls all methods called C<method> from C<$invocant>,
and returns a L<List> of the results. Dies if no such method was found.
Technically this is not an operator, but syntax special-cased in the compiler.
X«|postfix .*»
=head2 postfix C«.*»
C<$invocant.*method> calls all methods called C<method> from C<$invocant>,
Expand All @@ -551,6 +556,7 @@ L<List> is returned.
Technically this is not an operator, but syntax special-cased in the compiler.
X<|postfix ».>
=head2 postfix C<».> / postfix C«>>.»
X<Hyper method call operator>. Will call a method on all elements of a C<List> out of order and return the list of return values in order.
Expand Down

0 comments on commit af0228e

Please sign in to comment.