Skip to content

Commit

Permalink
updated trait ComposedFoldable in Composed.scala (#2258)
Browse files Browse the repository at this point in the history
changed variable names in trait ComposedFoldable[F[_], G[_]] for better readability
  • Loading branch information
Zhen-hao authored and Luka Jacobowitz committed May 17, 2018
1 parent cb2a08b commit 002bfc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/scala/cats/Composed.scala
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ private[cats] trait ComposedFoldable[F[_], G[_]] extends Foldable[λ[α => F[G[
def G: Foldable[G]

override def foldLeft[A, B](fga: F[G[A]], b: B)(f: (B, A) => B): B =
F.foldLeft(fga, b)((b, a) => G.foldLeft(a, b)(f))
F.foldLeft(fga, b)((b, ga) => G.foldLeft(ga, b)(f))

override def foldRight[A, B](fga: F[G[A]], lb: Eval[B])(f: (A, Eval[B]) => Eval[B]): Eval[B] =
F.foldRight(fga, lb)((ga, lb) => G.foldRight(ga, lb)(f))
Expand Down

0 comments on commit 002bfc2

Please sign in to comment.