Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Document Routine.cando
Fixes #749
  • Loading branch information
zoffixznet committed Aug 5, 2016
1 parent 22d46af commit aacd49d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions doc/Type/Routine.pod6
Expand Up @@ -43,6 +43,17 @@ Returns C<True> if the routine is a multi sub or method.
Returns a list of multi candidates, or a one-element list with itself
if it's not a multi
=head2 method cando
method cando(Capture $c)
Returns a possibly-empty list of candidates that can be called with the
given L<Capture|/type/Capture>, ordered by narrowest candidate first. For
methods, the first element of the Capture needs to be the invocant:
.signature.say for "foo".^can("comb")[0].cando: \(Cool, "o");
# (Cool $: Str $matcher, $limit = Inf, *%_)
=head2 method wrap
method wrap(Routine:D: &wrapper)
Expand Down

0 comments on commit aacd49d

Please sign in to comment.