2013-04-10 72 views

cevap

46

Orada bunun için yerleşik işlevler şunlardır: herhangi

List(1,2,3,4).forall(x => x < 5) 
res0: Boolean = true 

:

List(1,2,3,4).exists(x => x > 3) 
res1: Boolean = true