in reply to Parallel processing two arrays with different numbers of elements
I call it "List::MoreUtils::pairwise".
use v5.12; use List::MoreUtils; my @arr = qw/a b c d e/; my @bar = qw/12 34 56/; my $i = 0; List::MoreUtils::pairwise { say "\t$i"; say "\t\t$a, $b"; $i++; } @arr, @bar;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Parallel processing two arrays with different numbers of elements
by LanX (Saint) on Sep 14, 2013 at 23:09 UTC | |
by tobyink (Canon) on Sep 15, 2013 at 08:23 UTC | |
by ww (Archbishop) on Sep 15, 2013 at 12:21 UTC |