Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Document first-index
  • Loading branch information
hoelzro committed Nov 29, 2014
1 parent 300883d commit 7fe985f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/Type/List.pod
Expand Up @@ -156,6 +156,13 @@ Examples:
say $f = ('hello', 1, 22/7, 42, 'world').first: Complex;
say $f.perl; # Failure.new(exception => X::AdHoc.new(payload => "No values matched"))
=head2 routine first-index
multi method first-index(List:D: Mu $matcher)
Returns the first index against which C<$matcher> smart-matches, or C<Nil> if
no match was found.
=head2 routine classify
multi sub classify(&mapper, *@values) returns Hash:D
Expand Down

0 comments on commit 7fe985f

Please sign in to comment.