File tree Expand file tree Collapse file tree 3 files changed +12
-8
lines changed Expand file tree Collapse file tree 3 files changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -854,10 +854,11 @@ of an object of this type.
854
854
= comment When modifying this section, please also adapt the STORE
855
855
section in Associative accordingly as they are very similar.
856
856
857
- method STORE (::?CLASS:D: values, :$initialize)
857
+ method STORE (::?CLASS:D: \ values, :$initialize)
858
858
859
859
This method should only be supplied if you want to support the:
860
860
861
+ = for code :preamble<role Foo {}>
861
862
my @a is Foo = 1,2,3;
862
863
863
864
syntax for binding your implementation of the C < Positional > role.
@@ -980,10 +981,11 @@ slot of an object of this type.
980
981
= comment When modifying this section, please also adapt the STORE
981
982
section in Positional accordingly as they are very similar.
982
983
983
- method STORE (::?CLASS:D: values, :$initialize)
984
+ method STORE (::?CLASS:D: \ values, :$initialize)
984
985
985
986
This method should only be supplied if you want to support the:
986
987
988
+ = for code :preamble<role Foo {}>
987
989
my %h is Foo = a => 42, b => 666;
988
990
989
991
syntax for binding your implementation of the C < Associative > role.
Original file line number Diff line number Diff line change @@ -70,22 +70,23 @@ you use the parametrized version of Associative.
70
70
71
71
= head2 method AT-KEY
72
72
73
- method AT-KEY(key)
73
+ method AT-KEY(\ key)
74
74
75
75
Should return the value / container at the given key.
76
76
77
77
= head2 method EXISTS-KEY
78
78
79
- method EXISTS-KEY(key)
79
+ method EXISTS-KEY(\ key)
80
80
81
81
Should return a C < Bool > indicating whether the given key actually has a value.
82
82
83
83
= head2 method STORE
84
84
85
- method STORE(values, :$initialize)
85
+ method STORE(\ values, :$initialize)
86
86
87
87
This method should only be supplied if you want to support the:
88
88
89
+ = for code :preamble<role Foo {}>
89
90
my %h is Foo = a => 42, b => 666;
90
91
91
92
syntax for binding your implementation of the C < Associative > role.
Original file line number Diff line number Diff line change @@ -29,23 +29,24 @@ Should return the number of available elements in the instantiated object.
29
29
30
30
= head2 method AT-POS
31
31
32
- method AT-POS(position)
32
+ method AT-POS(\ position)
33
33
34
34
Should return the value / container at the given position.
35
35
36
36
= head2 method EXISTS-POS
37
37
38
- method EXISTS-POS(position)
38
+ method EXISTS-POS(\ position)
39
39
40
40
Should return a C < Bool > indicating whether the given position actually has a
41
41
value.
42
42
43
43
= head2 method STORE
44
44
45
- method STORE(values, :$initialize)
45
+ method STORE(\ values, :$initialize)
46
46
47
47
This method should only be supplied if you want to support the:
48
48
49
+ = for code :preamble<role Foo {}>
49
50
my @a is Foo = 1,2,3;
50
51
51
52
syntax for binding your implementation of the C < Positional > role.
You can’t perform that action at this time.
0 commit comments