om-*_*nom 67
这里有内置函数:
List(1,2,3,4).forall(x => x < 5)
res0: Boolean = true
Run Code Online (Sandbox Code Playgroud)
任何:
List(1,2,3,4).exists(x => x > 3)
res1: Boolean = true
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
12446 次 |
| 最近记录: |