Reports when a collection is reversed explicitly before calling map
.
The quick-fix will use xs.reverseMap(f)
, which might be more efficient in some cases.
Example:
var seq: Seq[Int]
seq.reverse.map(f)
After the quick-fix is applied:
var seq: Seq[Int]
seq.reverseMap(f)