Re: Using HashBags

2018-04-07 Thread Siavash
Hi, 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; On 2018-04-07 10:10:52 GMT, mimosinnet wrote: > Hi all, > > I do not seem to be able to get this done with the Bag or BagHash > type: > > ---

Re: Using HashBags

2018-04-07 Thread Fernando Santagata
Hi, I'm not sure that I've understood what you need. If you get that array of arrays from a another process @rows and you wish to convert it into a Bag you can do this: my @rows = [["JF", 1], ["JF", 2], ["MM", 2], ["MPu", 2], ["MM", 2], ["FE", 2], ["FV", 2], ["MPu", 2], ["JP", 2], ["JP", 2],

Using HashBags

2018-04-07 Thread mimosinnet
Hi all, I do not seem to be able to get this done with the Bag or BagHash type: --- dd @rows; Output: Array @rows = [["JF", 1], ["JF", 2], ["MM", 2], ["MPu", 2], ["MM", 2], ["FE", 2], ["FV", 2], ["MPu", 2], ["JP", 2], ["JP", 2], ["FV", 2], ["FV", 2], ["JF", 2], ["MM", 2], ["MPu", 2],