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