Skip to content

Commit aff4d83

Browse files
committed
Added omitted square brackets example with parametric typing.
1 parent 890758f commit aff4d83

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

S02-bits.pod

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1734,10 +1734,14 @@ value each of its elements stores:
17341734
Each successive C<of> makes the type on its right a parameter of the
17351735
type on its left. Parametric types are named using square brackets, so:
17361736

1737-
my Hash of Array of Recipe %book;
1737+
my Hash[Array[Recipe]] %book;
17381738

17391739
actually means:
17401740

1741+
my Hash of Array of Recipe %book;
1742+
1743+
which is:
1744+
17411745
my Hash:of(Array:of(Recipe)) %book;
17421746

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

0 commit comments

Comments
 (0)