摘要: 1. Arbitrary multi parameters funcssum(1,2,3,4,5) = sum(1 to 5: _*)the equal '=' can be ignored if there is none return val1 def sum(args: Int*) = {2 ... 阅读全文
posted @ 2014-10-06 22:37 丝滑课 阅读(227) 评论(0) 推荐(0) 编辑