etl.rb

1
2
3
4
5
6
7
class ETL
  def self.transform(old)
    old.flat_map do |score, words|
      words.map { |word| [word.downcase, score] }
    end.to_h
  end
end

@remcopeereboom thinks this looks great

Comments


You're not logged in right now. Please login via GitHub to comment