Create A Hash From An Array Of Arrays
Last updated
Was this helpful?
Last updated
Was this helpful?
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 for more details.
h/t Josh Davey