All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cats.CommutativeFlatMap.scala Maven / Gradle / Ivy

The newest version!
package cats

import simulacrum.typeclass

/**
 * Commutative FlatMap.
 *
 * Further than a FlatMap, which just allows composition of dependent effectful functions,
 * in a Commutative FlatMap those functions can be composed in any order, which guarantees
 * that their effects do not interfere.
 *
 * Must obey the laws defined in cats.laws.CommutativeFlatMapLaws.
 */
@typeclass trait CommutativeFlatMap[F[_]] extends FlatMap[F] with CommutativeApply[F]




© 2015 - 2024 Weber Informatics LLC | Privacy Policy