Skip to content

Commit ef9708a

Browse files
committed
Merge pull request #356 from dbrunton/patch-3
Cross meta operator
2 parents 28d006b + f614b01 commit ef9708a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

doc/Language/operators.pod

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,13 @@ quote it with C<[]> (e.g. C<[\[\x]]>).
283283
say $lazy[^10]; # (1 3 6 10 15 21 28 36 45 55)
284284
285285
=head2 Cross Operators
286-
TODO
286+
287+
The cross metaoperator, C<X>, will apply a given infix operator in order of
288+
cross product to all lists, such that the rightmost operator varies most
289+
quickly.
290+
291+
1..3 X~ <a b>
292+
# produces <1a, 1b, 2a, 2b, 3a, 3b>
287293
288294
=head2 Zip Operators
289295

0 commit comments

Comments
 (0)