filter 및 headOption의 사용을 보고하고 find로 바꿉니다.

예:


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

빠른 수정을 적용한 후:


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