Skip to content

Commit 26441e3

Browse files
committed
Update cross product output post-GLR
1 parent acd7ca8 commit 26441e3

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

lib/Language/operators.pod

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1384,18 +1384,16 @@ Creates a cross product from all the lists, order so that the rightmost
13841384
elements vary most rapidly
13851385
13861386
1..3 X <a b c> X 9
1387-
# produces (1, 'a', 9), (1, 'b', 9), (1, 'c', 9),
1388-
(2, 'a', 9), (2, 'b', 9), (2, 'c', 9),
1389-
(3, 'a', 9), (3, 'b', 9), (3, 'c', 9)
1387+
# produces ((1 a 9) (1 b 9) (1 c 9)
1388+
# (2 a 9) (2 b 9) (2 c 9)
1389+
# (3 a 9) (3 b 9) (3 c 9))
13901390
13911391
The C<X> operator also exists as a meta operator, in which case the inner
13921392
lists are replaced by the value from applying the meta'ed operator to the
13931393
list:
13941394
13951395
1..3 X~ <a b c> X~ 9
1396-
# produces '1a9', '1b9', '1c9',
1397-
'2a9', '2b9', '2c9',
1398-
'3a9', '3b9', '3c9'
1396+
# produces (1a9 1b9 1c9 2a9 2b9 2c9 3a9 3b9 3c9)
13991397
14001398
=head2 infix C«...»
14011399

0 commit comments

Comments
 (0)