Create A Hash From An Array Of Arrays
The ::[]
method on the Hash
class allows you to succinctly create a hash from an array of arrays -- or rather an array of tuples which are key value pairs.
See the Hash::[]
docs for more details.
h/t Josh Davey
Last updated