Re: Using HashBags

2018-04-08 Thread Joan Pujol
El Saturday, 07 de April del 2018 a les 16:47, Siavash va escriure: Don't know if there is a better way, but assuming you don't have control over the data, you can do this: my Bag $docents = @rows.map(*.pairup).Bag; This is what I was looking for! I did not came across the 'pairup' method.

Re: Using HashBags

2018-04-08 Thread Brad Gilbert
You can do the following my %b is BagHash = … or my %b := bag … On Sun, Apr 8, 2018 at 10:54 AM, Vittore Scolari wrote: > I answer myself: with % you get an Hash > > On Sun, Apr 8, 2018 at 5:53 PM, Vittore Scolari > wrote: >> >>

Re: Using HashBags

2018-04-08 Thread Vittore Scolari
I answer myself: with % you get an Hash On Sun, Apr 8, 2018 at 5:53 PM, Vittore Scolari wrote: > Wouldn't here be better to use the % sigil? > > my %docents = bag @rows.map: -> @row {@row[0] xx @row[1]}; > > > > On Sat, Apr 7, 2018 at 1:02 PM, Fernando Santagata < >

Re: Using HashBags

2018-04-08 Thread Vittore Scolari
Wouldn't here be better to use the % sigil? my %docents = bag @rows.map: -> @row {@row[0] xx @row[1]}; On Sat, Apr 7, 2018 at 1:02 PM, Fernando Santagata < nando.santag...@gmail.com> wrote: > Hi, > > I'm not sure that I've understood what you need. > If you get that array of arrays from a