tofu.higherKind.bi.BiPoint.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tofu-core-higher-kind_3 Show documentation
Show all versions of tofu-core-higher-kind_3 Show documentation
Opinionated set of tools for functional programming in Scala
package tofu.higherKind.bi
trait BiPoint[F[_, _]] {
def apply[E, A]: F[E, A]
def pure[U[f[_, _]]](implicit UP: PureBK[U]): U[F] = UP.pureB(this)
}
object BiPoint {
val unit: BiPoint[UnitBK] = new BiPoint[UnitBK] {
override def apply[E, A]: Unit = ()
}
}