From a059e9b9d567ee2b7952fdb3f1897865eb7387ac Mon Sep 17 00:00:00 2001 From: JJ Merelo Date: Mon, 4 Mar 2019 07:34:43 +0100 Subject: [PATCH] Fixes X closes #2648 --- doc/Language/operators.pod6 | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/doc/Language/operators.pod6 b/doc/Language/operators.pod6 index daf5b2d2c..74e03b282 100644 --- a/doc/Language/operators.pod6 +++ b/doc/Language/operators.pod6 @@ -2416,12 +2416,16 @@ list: say 1..3 Z~ Z~ 'x' xx 3; # OUTPUT: «(1ax 2bx 3cx)␤» X<|cross product operator> +X<|X,operators> =head2 infix C«X» - sub infix:(**@lists --> List:D) +Defined as: + + multi sub infix:(+lol, :&with! --> Seq:D) + multi sub infix:(+lol --> Seq:D) Creates a cross product from all the lists, ordered so that the -rightmost elements vary most rapidly: +rightmost elements vary most rapidly, and returns a C: 1..3 X X 9 # produces ((1 a 9) (1 b 9) (1 c 9)