On Sun May 30 01:07:08 2010, richardh wrote: > from IRC #perl6 May 30 > > plain application of X works: > > finanalyst: rakudo: for 1,2 X <a b> { say "$^x $^y" } > p6eval: rakudo 34542f: OUTPUT«1 a 1 b2 a 2 b» > > multiple application does not: > > finanalyst: rakudo: for 1,2 X (<a b> X 'x') { say "$^x $^y" } > p6eval: rakudo 34542f: ( no output ) > finanalyst: moritz_: am i missing something in the second range? > moritz_: something's wrong > moritz_: I guess it has to do with list flattening > >
<[Coke]> rakudo: for 1,2 X (<a b> X 'x') { say "$^x $^y" } <p6eval> rakudo a389b2: OUTPUT«1 a1 x1 b1 x2 a2 x2 b2 x» I'm not sure if that output is correct, but it's definitely closer than the original. -- Will "Coke" Coleda