File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 6
6
7
7
class Hash is Map { }
8
8
9
- A C < Hash > is a mutable L < Map|/type/Map > .
10
-
11
- C < Hash > implements C < Associative > through its inheritance of C < Map > and as such
12
- provides support for looking up values using keys, providing support for
13
- L < associative subscripting|/language/subscripts#Methods_to_implement_for_associative_subscripting > .
9
+ A C < Hash > is a mutable L < Map|/type/Map > ; it implements C < Associative > through
10
+ its inheritance of C < Map > and as such provides support for looking up values
11
+ using keys, providing support for L < associative
12
+ subscripting|/language/subscripts#Methods_to_implement_for_associative_subscripting > .
14
13
15
14
Although the order of the hashes is guaranteed to be random in every single
16
15
call, still successive calls to C < .keys > and C < .values > are guaranteed to return
@@ -21,9 +20,10 @@ them in the same order:
21
20
say %orig.perl; # OUTPUT: «{:a(1), :b(5), :c(6)}»
22
21
23
22
In this case, C < b > will always be associated to 5 and C < c > to 6; even if two
24
- successive calls to C < keys > will return them in different order. Successive calls
25
- to any of them separately and repeatedly will always return the same order in
26
- any program invocation.
23
+ successive calls to C < keys > will return them in different order. Successive
24
+ calls to any of them separately and repeatedly will always return the same order
25
+ in any program invocation.
26
+
27
27
28
28
= head1 Methods
29
29
You can’t perform that action at this time.
0 commit comments