On Thu Nov 05 23:02:55 2015, sml...@gmail.com wrote: > When the LHS expression of xx is a List, the nested structure of the > result is preserved: > > ➜ dd (2, 4, 6) xx 2 > List $var = $((2, 4, 6), (2, 4, 6)) > > However when the LHS is a Seq returned from .pick or .map or similar, > the > result unexpectedly gets flattened: > > ➜ dd (2, 4, 6).pick(*) xx 2 > List $var = $(2, 6, 4, 4, 2, 6) > > ➜ dd (2, 4, 6).map({$_}) xx 2 > List $var = $(2, 4, 6, 2, 4, 6) > > > [This is perl6 version 2015.10-195-ga2a34c2 built on MoarVM version > 2015.10-56-g9fd3005]
It should retain structure even with a Seq. Fixed and tests in S03-operators/repeat.t.