0
我是紅寶石新手散列到哈希紅寶石
我有一個哈希值與鍵=>值對的大集合。我想根據關鍵將這個散列分成散列。
{..."LoopLabs "=>1, "Influanza "=>1, "Cleo Media "=>1, "Adento "=>1, "HireRadar "=>1, "FidorFactory "=>1, "Four Energy "=>1, "Liefery "=>5, "Weaveworks "=>1, "Gastrofix "=>1 }
我希望以下結果:
{ label: "LoopLabs", values: [[1]] }
{ label: "Influanza", values: [[1]] }
{ label: "Liefery", values: [[5]] }
...
感謝您的幫助!