Example 7-11. examples/arrays/hyper.p6 #!/usr/bin/perl6
use v6;
my @a = (1, 2, 3);
my @b = (7, 10, 12);
my @c = @a »+« @b;
say join ",", @c;
#TODO
#my @d = @c >>+<< 3; ##???
#say "{@d}";
# my @e = @c >>+>> 3; ##???
#my @x = (1, 2, 3) >>+<< (4, 5); # 5 7 3
#say "{@x}";
If you are interested in on-site trainings by the author, please
contact me directly.
|