私はスカラ座に非常に新しいですし、次のコードでいくつかの未解決の問題だ方法を持っているん: object exprs{
println("Welcome to the Scala worksheet")
def show(e: Expr): String = e match {
case Number(x) => x.toString
case S
「適用解除」再利用することはできません object Extract {
def unapply = f
}
次にコンパイルがで失敗します: error: an unapply result must have a member `def isEmpty: Boolean
val Extract(result) = "a string"
^
なぜですか? def is