Revision bc40c989
Von Sven Schöling vor fast 16 Jahren hinzugefügt
SL/MoreCommon.pm | ||
---|---|---|
96 | 96 |
# append each to each |
97 | 97 |
@a = qw/a b c/; |
98 | 98 |
@b = qw/1 2 3/; |
99 |
@x = pairwise { "$a$b" } @a, @b;
|
|
99 |
@x = cross { "$a$b" } @a, @b;
|
|
100 | 100 |
# returns a1, a2, a3, b1, b2, b3, c1, c2, c3 |
101 | 101 |
|
102 | 102 |
As cross expects an array but returns a list it is not directly chainable |
Auch abrufbar als: Unified diff
Dokufix