I would like to do a.each_with_object with index, in a better way than this:
a.each_with_object
index
a = %w[a b c] a.each.with_index.each_with_object({}) { |ar
Instead of
|arr, hash|
you can do
|(v, i), hash|