You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the first case, every element of C<@l> is I<slipped> as the corresponding elements of the resulting list. C<flat>, in the other hand, I<flattens> all elements including the elements of the included array, except for C«(9 10)».
289
+
In the first case, every element of C<@l> is I<slipped> as the corresponding
290
+
elements of the resulting list. C<flat>, in the other hand, I<flattens> all
291
+
elements including the elements of the included array, except for C«(9 10)».
290
292
291
293
As hinted above, scalar containers prevent that flattening:
292
294
293
295
sub f(*@x) { @x.elems };
294
296
my @a = 1, 2, 3;
295
297
say f $@a, 4, 5; # OUTPUT: «3»
296
298
297
-
The C<@> character can also be used as a prefix to coerce the argument to a list, thus removing a scalar container:
299
+
The C<@> character can also be used as a prefix to coerce the argument to a
0 commit comments