# File lib/facets/core/array/to_h.rb, line 19 def to_h(arrayed=nil) unless arrayed Hash[*self.flatten] else h = {} each{ |e| h[e.first] = e.slice(1..-1) } h end end