Reports when a collection is reversed explicitly before calling find
.
The quick-fix will use xs.findLast(f)
, which might be more efficient in some cases.
Example:
Seq(1, 2).reverse.find(_ == 2)
After the quick-fix is applied:
Seq(1, 2).findLast(_ == 2)