Skip to content

Commit

Permalink
Simplify AssociativeFlattenCovariantOps#flatMap code (#1417)
Browse files Browse the repository at this point in the history
  • Loading branch information
guizmaii authored Nov 20, 2024
1 parent 760c31c commit 641d320
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,6 @@ trait AssociativeFlattenSyntax {
* resulting `F[F[B]]`.
*/
def flatMap[B](f: A => F[B])(implicit flatten: AssociativeFlatten[F], covariant: Covariant[F]): F[B] =
flatten.flatten(covariant.map(f)(fa))
fa.map(f).flatten
}
}

0 comments on commit 641d320

Please sign in to comment.