Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Document Code.of()
  • Loading branch information
zoffixznet committed Sep 25, 2016
1 parent a38e81a commit 57234e6
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions doc/Type/Code.pod6
Expand Up @@ -58,6 +58,17 @@ C<count> will return C<Inf>. Named parameters do not contribute.
say &args.count; # 2
say &slurpy.count; # Inf
=head2 of
Defined as:
method of(Code:D:) returns Mu
Returns the return type constraint of the C<Code>:
m: say sub () returns Int {}.of
# OUTPUT: (Int)
=head2 method signature
Defined as:
Expand Down

0 comments on commit 57234e6

Please sign in to comment.