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

scalaz.Forall.scala Maven / Gradle / Ivy

package scalaz

/** A universally quantified value */
trait Forall[P[_]] { self =>
  def apply[A]: P[A]

  /** `Forall` is an endofunctor in an endofunctor category */
  def map[Q[_]](f: P ~> Q): Forall[Q] = new Forall[Q] {
    def apply[A]: Q[A] = f(self.apply)
  }
}

object Forall extends Foralls




© 2015 - 2025 Weber Informatics LLC | Privacy Policy