- 链接地址:https://blog.csdn.net/jinjiankang/article/details/104891613
- 链接标题:Scala 之 占位符(即下划线)语法一_"scala line=>line.split(\"\\\\s+\")改写为占位符写法"-CSDN博客
- 所属网站:blog.csdn.net
- 被收藏次数:5348
文章浏览阅读253次。scala> val someNumbers = List(-11, -10, -5, 0, 5, 10)someNumbers: List[Int] = List(-11, -10, -5, 0, 5, 10)scala> someNumbers.filter((x: Int) => x > 0)res1: List[Int] = List(5, 10)// 等..._"scala line=>line.split(\"\\\\s+\")改写为占位符写法"
版权声明:本文发布于特牛网址导航 内容均来源于互联网 如有侵权联系删除