- or download this
for( @male Z @female )->[$m,$f] { # .... }
- or download this
for (@male Z @female).tree ->[$m,$f] {
# ....
}
- or download this
my @array;
for @male Z @female -> $m, $f {
...
# or
my @array = (@male Z @female).map("$^a $^b");
- or download this
my @array = @male Z~ @female; # without joining space
- or download this
# with the list repetition operator:
@array = @male Z~ ' ' xx @male Z~ @female;
# with cross instead of zip:
@array = @male X~ ' ' Z~ @female;