摘要: 1. 部分函数 形如:{case x => ...} 综述:他的便捷性是和匿名函数比较起来的 模式匹配(实现高代码密度) (0::1::2::Nil).map{ case x:Int => x.toString case s:String => s case _ => throw new Illeg 阅读全文
posted @ 2024-12-25 22:38 msuad 阅读(45) 评论(0) 推荐(0)