- 链接地址:https://blog.csdn.net/reasery/article/details/83036967
- 链接标题:scala的一些知识点(一)_scala的知识点-CSDN博客
- 所属网站:blog.csdn.net
- 被收藏次数:258
文章浏览阅读186次。函数: val sum = (x:Int,y:Int) => {x+y}方法: def sum(x:Int,y:Int) = {x+y} //定义方法 def m1(x:Int,f:Int=>Int) = f(x) def m2(f:(Int,Int) => Int) = f(2,3) def m3(f:(Int,Int)=>Int,x:Int,y:Int) ..._scala的知识点
版权声明:本文发布于特牛网址导航 内容均来源于互联网 如有侵权联系删除
标签:scala的知识点