Skip to content

Commit

Permalink
Merge pull request #920 from tbrowder/sig-example
Browse files Browse the repository at this point in the history
add example of a trait with a where clause
  • Loading branch information
tbrowder committed Sep 28, 2016
2 parents 02bb8dd + 5ac359a commit 7de9973
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions doc/Type/Signature.pod6
Original file line number Diff line number Diff line change
Expand Up @@ -507,6 +507,10 @@ C<Array> full of C<Scalar>s as described above, C<is raw> will instead cause
the parameter to produce a C<List>. Each element of that list will be bound
directly as raw parameter.
Traits can be followed by the where clause:
sub ip-expand-ipv6($ip is copy where m:i/^<[a..f\d\:]>**3..39$/) {...}
=head1 Methods
=head2 method params
Expand Down

0 comments on commit 7de9973

Please sign in to comment.