find 및 빈 값 검사를 보고하고 대신 exists를 사용할 것을 제안합니다.

예:


  var x: Seq[Int]
  x.find(p).isDefined
  x.find(p) != None
  x.find(p).isEmpty

빠른 수정 적용 후:


  var x: Seq[Int]
  x.exists(p)
  x.exists(p)
  !x.exists(p)