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

zio.prelude.experimental.Annihilation.scala Maven / Gradle / Ivy

There is a newer version: 1.0.0-RC34
Show newest version
package zio.prelude
package experimental

import zio.prelude.newtypes.Sum

trait Annihilation[A] extends DistributiveProd[A] {
  def Sum: Identity[Sum[A]]
  def annihilation: A = Sum.identity
}

object Annihilation {

  /**
   * Summons an implicit `Annihilation[A]`.
   */
  def apply[A](implicit annihilation: Annihilation[A]): Annihilation[A] = annihilation

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy