Skip to content

Commit

Permalink
Fix 'X' operator example.
Browse files Browse the repository at this point in the history
  • Loading branch information
kanatohodets committed Jun 8, 2013
1 parent 2814352 commit eb14a4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/operators.pod
Expand Up @@ -1082,7 +1082,7 @@ list:
Creates a cross product from all the lists, order so that the rightmost
elements vary most rapidly
1..3 X <a b> X 9
1..3 X <a b c> X 9
# produces (1, 'a', 9), (1, 'b', 9), (1, 'c', 9),
(2, 'a', 9), (2, 'b', 9), (2, 'c', 9),
(3, 'a', 9), (3, 'b', 9), (3, 'c', 9)
Expand All @@ -1091,7 +1091,7 @@ The C<X> operator also exists as a meta operator, in which case the inner
parcels are replaced by the value from applying the meta'ed operator to the
list:
1..3 X~ <a b> X~ 9
1..3 X~ <a b c> X~ 9
# produces '1a9', '1b9', '1c9',
'2a9', '2b9', '2c9',
'3a9', '3b9', '3c9'
Expand Down

0 comments on commit eb14a4f

Please sign in to comment.