Skip to content

Commit

Permalink
Adds new routine to Routine and wraps, Raku#4002
Browse files Browse the repository at this point in the history
  • Loading branch information
JJ committed Dec 31, 2021
1 parent 0b046f2 commit 809b449
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions doc/Type/Routine.pod6
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,9 @@ Returns the package in which the routine is defined.
method multi(Routine:D: --> Bool:D)
Returns C<True> if the routine is a multi sub or method. Note that
the name of a multi sub refers to its L<C<proto>|/syntax/proto> and this method would
return false if called on it. It needs to be called on the
candidates themselves:
Returns C<True> if the routine is a multi sub or method. Note that the name of a
multi sub refers to its L<C<proto>|/syntax/proto> and this method would return
false if called on it. It needs to be called on the candidates themselves:
multi foo ($, $) {};
say &foo.multi; # OUTPUT: «False␤»
Expand Down Expand Up @@ -101,6 +100,15 @@ L<wrap|/routine/wrap>. While the signature allows any type to be passed, only
the L<C<Routine::WrapHandle>|/type/Routine::WrapHandle> type returned from
C<wrap> can usefully be.
=head2 method is-wrapped
Defined as:
method is-wrapped()
Returns C<True> or C<False>, depending on the wrappedness of the affected
C<Routine>.
=head2 method yada
method yada(Routine:D: --> Bool:D)
Expand Down

0 comments on commit 809b449

Please sign in to comment.