The last line can be simplified to traverse the list only once with:
Enum.map(values, &Map.new(Enum.zip(keys, &1)))