File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -31,8 +31,8 @@ Example:
31
31
32
32
= head2 routine push
33
33
34
- multi sub push(Array:D, *@values) returns Array:D
35
- multi method push(Array:D: *@values) returns Array:D
34
+ multi sub push(Array:D, ** @values) returns Array:D
35
+ multi method push(Array:D: ** @values) returns Array:D
36
36
37
37
Adds the C < @values > to the end of the array, and returns the modified list.
38
38
Fails for infinite arrays.
@@ -59,8 +59,8 @@ Example:
59
59
60
60
= head2 routine unshift
61
61
62
- multi sub unshift(Array:D, *@values) returns Array:D
63
- multi method unshift(Array:D: *@values) returns Array:D
62
+ multi sub unshift(Array:D, ** @values) returns Array:D
63
+ multi method unshift(Array:D: ** @values) returns Array:D
64
64
65
65
Adds the C < @values > to the start of the array, and returns the modified array.
66
66
Fails if C < @values > is infinite.
You can’t perform that action at this time.
0 commit comments