Scala 作业题练习纪录-CSDN博客

网站介绍:文章浏览阅读314次。[size=large][color=red][b]1.用reduceLeft获取集合中最大元素[/b][/color][/size][code="scala"]println((1 to 3).reduceLeft((x,y)=>Math.max(x,y)))[/code]2 编写函数values(fun:(Int)=>Int,low:Int,high:Int),该函数输出一个集..._scala编程题目