2013-04-10 12 views

Odpowiedz

46

Są wbudowane funkcje to:

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

dla każdego:

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