网站介绍:文章浏览阅读2k次。关键代码+运行截图1.编写函数values(fun(Int)=>Int, low:Int,high: Int)该函数输出一个集合,对应给定区间 内给定函数的输入和输出。比如values(x=>x*x,-5,5) 应该产生集合(-5,25) (-4,16) ….def values(fun:(Int)=>Int,low:Int,high:Int):List[(Int,Int)]={ var_编写函数values(fun:(int)=>int,low:int,high:int),该函数输出一个集合,对应给定
- 链接地址:https://blog.csdn.net/Nougats/article/details/72903303
- 链接标题:scala小练习三_编写函数values(fun:(int)=>int,low:int,high:int),该函数输出一-CSDN博客
- 所属网站:blog.csdn.net
- 被收藏次数:2353
- 网站标签:编写函数values(fun:(int)=>int low:int high:int) 该函数输出一个集合 对应给定