标签:
val one:PartialFunction[Int,String]={ case 1 => "one" case 2 => "two" case _ => "other numbers" } println(one(3))
PartialFunction(偏函数)
原文地址:http://www.cnblogs.com/yshyee/p/4793201.html