filtersize(또는 length)의 사용을 보고하고 count로 바꿀 것을 제안합니다.

예:


  var x: Seq[Int]
  x.filter(p).size

빠른 수정 적용 후:


  var x: Seq[Int]
  x.count(p)