摘要: val one:PartialFunction[Int,String]={ case 1 => "one" case 2 => "two" case _ => "other numbers" } println(one(3)) 阅读全文
posted @ 2015-09-08 22:46 yshy 阅读(290) 评论(0) 推荐(0) 编辑