I have an array of about 860 items, I would like to turn it into a hash, the array structure is (Key1, value 1, value2, value 3, Key2, value 1, value 2, value 3........... etc etc) except in real life it looks like (Peter, 150, 39, 345, John, 123, 450, 402, Mary, 145, 345, 506............). Original these are four arrays which I have transposed together, so I could reach the same end goal by starting from 4 independent arrays.
I would like
Hash {Peter=> [150, 39, 345], John=>[123,450,402], Mary => [145,345,506] etc etc
I feel there should be a nice neat way to do this, but it eludes me, possibly because I don't know enough ruby.