diff --git a/core/src/main/scala-2.13+/cats/instances/arraySeq.scala b/core/src/main/scala-2.13+/cats/instances/arraySeq.scala index 7a185ee089..27e7db072f 100644 --- a/core/src/main/scala-2.13+/cats/instances/arraySeq.scala +++ b/core/src/main/scala-2.13+/cats/instances/arraySeq.scala @@ -223,7 +223,9 @@ private[cats] object ArraySeqInstances { G.map2Eval(f(x), xse)((b, vec) => if (b) x +: vec else vec) }.value - override def mapAccumulateFilter[S, A, B](init: S, fa: ArraySeq[A])(f: (S, A) => (S, Option[B])): (S, ArraySeq[B]) = + override def mapAccumulateFilter[S, A, B](init: S, fa: ArraySeq[A])( + f: (S, A) => (S, Option[B]) + ): (S, ArraySeq[B]) = StaticMethods.mapAccumulateFilterFromStrictFunctorFilter(init, fa, f)(this) } } diff --git a/core/src/main/scala/cats/instances/option.scala b/core/src/main/scala/cats/instances/option.scala index 86d8ec7e1d..f8777a8911 100644 --- a/core/src/main/scala/cats/instances/option.scala +++ b/core/src/main/scala/cats/instances/option.scala @@ -284,7 +284,7 @@ private[instances] trait OptionInstancesBinCompat0 { case None => G.pure(Option.empty[A]) case Some(a) => G.map(f(a))(b => if (b) Some(a) else None) } - + override def mapAccumulateFilter[S, A, B](init: S, fa: Option[A])(f: (S, A) => (S, Option[B])): (S, Option[B]) = fa match { case Some(a) => f(init, a)