src/main/scala/etl.scala

1
2
3
4
5
object ETL {
  def transform(old: Map[Int, Seq[String]]): Map[String, Int] =
    for ((score, words) <- old; word <- words)
      yield word.toLowerCase -> score
}

@abo64 thinks this looks great

Comments


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