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

tofu.higherKind.bi.MonoidalBK.scala Maven / Gradle / Ivy

There is a newer version: 0.13.6
Show newest version
package tofu.higherKind.bi

trait MonoidalBK[U[f[_, _]]] extends SemigroupalBK[U] with PureBK[U] {
  def mapb[F[_, _], G[_, _]](uf: U[F])(f: FunBK[F, G]): U[G] =
    map2b(uf, unitB)(Fun2BK.apply[F, UnitBK]((fa, _) => f(fa)))
}

object MonoidalBK {
  def apply[U[f[_, _]]](implicit u: MonoidalBK[U]): MonoidalBK[U] = u
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy