endless.core.entity.Self.scala Maven / Gradle / Ivy
package endless.core.entity
/** Self represent the entity itself via its algebra
* @tparam F
* context
* @tparam Alg
* entity algebra
*/
trait Self[F[_], Alg[_[_]]] {
def self: Alg[F]
}
object Self {
def apply[F[_], Alg[_[_]]](implicit self: Self[F, Alg]): Self[F, Alg] = self
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy