Skip to content

Instantly share code, notes, and snippets.

@Yuichiroh
Created April 2, 2015 07:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Yuichiroh/b5098fa47a6f46255762 to your computer and use it in GitHub Desktop.
Save Yuichiroh/b5098fa47a6f46255762 to your computer and use it in GitHub Desktop.
1.until(5).map(((i) => {
val best = bests(i.$minus(1)).max;
scala.Tuple2(i, best)
})).foreach(((x$1) => x$1: @scala.unchecked match {
case scala.Tuple2((i @ _), (best @ _)) => 0.until(5).foreach(((j) => bests(i).update(j, best.$plus(scores(i)(j)))))
}))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment