We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bab6c34 commit 82b8032Copy full SHA for 82b8032
S07-lists.pod
@@ -81,9 +81,9 @@ For example, consider the C<push> method:
81
@a.push: 1, 2, 3; # pushes 3 values to @a
82
@a.push: [1, 2, 3]; # pushes 3 values to @a
83
@a.push: @b; # pushes @b.elems values to @a
84
+ @a.push: @b,; # same, trailing comma doesn't make > 1 argument
85
@a.push: $(1, 2, 3); # pushes 1 value (a List) to @a
86
@a.push: $[1, 2, 3]; # pushes 1 value (an Array) to @a
- @a.push: @b,; # pushes 1 value (whatever is in @b)
87
88
Additionally, the list constructor (the C<< infix:<,> >> operator) and the
89
array composer (the C<[...]> circumfix) follow the rule:
0 commit comments