Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Added omitted square brackets example with parametric typing.
  • Loading branch information
lizmat committed Apr 1, 2013
1 parent 890758f commit aff4d83
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion S02-bits.pod
Expand Up @@ -1734,10 +1734,14 @@ value each of its elements stores:
Each successive C<of> makes the type on its right a parameter of the
type on its left. Parametric types are named using square brackets, so:

my Hash of Array of Recipe %book;
my Hash[Array[Recipe]] %book;

actually means:

my Hash of Array of Recipe %book;

which is:

my Hash:of(Array:of(Recipe)) %book;

Because the actual variable can be hard to find when complex types are
Expand Down

0 comments on commit aff4d83

Please sign in to comment.