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

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

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