# File lib/facets/core/array/to_hash.rb, line 18 def to_hash h = {} each_with_index{ |e,i| h[i] = e } h end