For turning Arrays into Hashes, with keys computed from the Array contents. Or for rekeying Hashes. [ 1, 2, 3 ].rekey {|v| v} => { 1 => 1, 2 => 2, 3 => 3 }
Daniel Pepper
December 29, 2016 6:33pm
MIT