File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -916,10 +916,14 @@ Based on C<$matcher> value can be either C<((Any))> or empty List.
916
916
917
917
Defined As:
918
918
919
- method append(@values --> Array)
920
-
921
- Initializes Any variable as empty Array and calls
922
- L « C < Array.append > |/type/Array#method_append» on it.
919
+ proto method append(|) is nodal {*}
920
+ multi method append(Any:U \SELF: |values --> Array)
921
+
922
+ In the case the instance is not a positional-thing, it instantiate it
923
+ as a new L < Array|/type/Array > , otherwise clone the current
924
+ instance.
925
+ After that, it appends the values passed as arguments to
926
+ the array obtained calling L « C < Array.append > |/type/Array#method_append» on it.
923
927
924
928
my $a;
925
929
say $a.append; # OUTPUT: «[]»
You can’t perform that action at this time.
0 commit comments