报告 filter 和 headOption 的用法,并将其替换为 find。
filter
headOption
find
示例:
var x: Seq[Int] x.filter(p).headOption
在应用快速修复后:
var x: Seq[Int] x.find(p)