Created
April 28, 2014 14:04
-
-
Save pedrofurla/11373093 to your computer and use it in GitHub Desktop.
Playframework template WTF?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // FINE! | |
| @reports.zip(exec.Comparisons2.totalTimeColors).map { case (r@ElapsedTimeOf(title, elapsed ),color) => | |
| @{oneSeries(elapsed.time, title, "column", color, 0)} | |
| }.reduce(_ + (new Html(",")) + _) | |
| --------------- | |
| // BAD! -> | |
| @reports.zip(exec.Comparisons2.totalTimeColors).map { | |
| case (r@ElapsedTimeOf(title, elapsed ),color) => | |
| @{oneSeries(elapsed.time, title, "column", color, 0)} | |
| }.reduce(_ + (new Html(",")) + _) | |
| Error: | |
| [error] /Users/pedrofurla/dev/projects/slick/slick-perf/src/main/twirl/templates/plots3.scala.html:70: missing arguments for method elapsed in object Chronograph2; | |
| [error] follow this method with `_' if you want to treat it as a partially applied function | |
| [error] case (r@ElapsedTimeOf(title, elapsed ),color) => | |
| [error] ^ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment