You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/Language/hashmap.pod6
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ the two methods above, as well as the default Hash behavior.
19
19
say (%).^name ;# OUTPUT: «Hash»
20
20
21
21
Inversely, you cannot use the C<%> sigil if the C<Associative> role is not mixed
22
-
in, but since this role does not have any associater properties, you will have
22
+
in, but since this role does not have any associated properties, you will have
23
23
to redefine the behavior of the L<hash subscript
24
24
operator|/language/operators#postcircumfix_{_}>. In order to do that, there
25
25
are several functions you will have to override:
@@ -65,7 +65,7 @@ say %logger<2018-04-22>:exists; # OUTPUT: «False»
65
65
66
66
=endcode
67
67
68
-
In this case, we are definning a logger with Associative semantics that would be
68
+
In this case, we are defining a logger with Associative semantics that would be
69
69
able to use dates (or a part of them) as keys. Since we are parametrizing
70
70
C<Associative> to those particular classes, C<of> will return the value type we
71
71
have used, C<Cool> in this case (we can log lists or strings only). Mixing the C<Associative> role gives it the right to use the C<%> sigil; binding is needed in the definition since C<%>-sigilled variables get by default the C<Hash> type.
@@ -96,7 +96,7 @@ immutable. Once a key has been paired with a value, this pairing cannot be
96
96
changed.
97
97
98
98
Maps and hashes are usually stored in variables with the percent C<%> sigil,
99
-
which is ussed to indicate they are Associative.
99
+
which is used to indicate they are Associative.
100
100
101
101
Hash and map elements are accessed by key via the C<{ }> postcircumfix operator:
0 commit comments