pathTokens match {
case List("post") => ("post", "index")
case List("search") => ("search", "index")
case List() => ("home", "index")
} match {
case (controller, action) => loadController(http, controller, action)
case _ => null
}
我想要连续比赛。但有编译错误。 :(斯卡拉连续比赛
(pathTokens match {
case List("post") => ("post", "index")
case List("search") => ("search", "index")
case List() => ("home", "index")
}) match {
case (controller, action) => loadController(http, controller, action)
case _ => null
}
当我裹着首场比赛parenparenthesis,它的工作确定 为什么我需要在这里括号
感谢您帮助的注释。 – drypot 2010-04-10 07:47:53