> On Jul 10, 2019, at 12:17 PM, Marc Chantreux <e...@phear.org> wrote:
—snip--
>  my @rounds =
>    gather for ^@players -> \p
>      { take @players[p,$_] for p^..^@players };

Cool.
Yet another way to do it:
        my @rounds = @players.kv.map: -> \k1, \p1 {
          |@players.skip(1 + k1).map: ->      \p2 { p1, p2 }
        }
I mention it because I had not though to use .skip for this purpose until today.

> thank you very much.

You are very welcome.

— 
Bruce Gray (Util of PerlMonks)

Reply via email to