Created
May 9, 2012 16:38
-
-
Save yoshiori/2646399 to your computer and use it in GitHub Desktop.
単に評価順じゃね???
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
scala> val txt = "foo" + "bar" match { case s => {println(s);s} } | |
foobar | |
txt: java.lang.String = foobar | |
scala> val txt = "foo" + ("bar" match { case s => {println(s);s} }) | |
bar | |
txt: java.lang.String = foobar | |
だから | |
val filePath = "src/main/webapp/" + path match { | |
case tentenRegex() => throw new Exception | |
case "/" => "/index.html" | |
case _ => path | |
} | |
val filePath = "src/main/webapp/" + (path match { | |
case tentenRegex() => throw new Exception | |
case "/" => "/index.html" | |
case _ => path | |
}) | |
にすればいいのでは??? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment