class Roadie::Deduplicator

def calculate_latest_occurance

def calculate_latest_occurance
  @latest_occurance = input.each_with_index.each_with_object({}) do |(value, index), map|
    @duplicates = true if map.has_key?(value)
    map[value] = index
  end
end