2013-04-10 6 views

答えて

46

あり、このための組み込み関数です:任意のための

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

List(1,2,3,4).exists(x => x > 3) 
res1: Boolean = true 
は、
関連する問題