A
Arihan Sinha
Hi All,
I've two arrays,
keys = [300,300,301,301,301,302,302]
values = [1, 2, 1, 3, 4, 3, 4]
both the arrays have equal size.
I need to create a hask
hsh = {"300" =>["1","2"],"301" => ["1","3","4"],"302"=>["3","4"]}
Could any one please put the ruby code for this.
Cheers
A
I've two arrays,
keys = [300,300,301,301,301,302,302]
values = [1, 2, 1, 3, 4, 3, 4]
both the arrays have equal size.
I need to create a hask
hsh = {"300" =>["1","2"],"301" => ["1","3","4"],"302"=>["3","4"]}
Could any one please put the ruby code for this.
Cheers
A