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

medeia.generic.util.VersionSpecific.scala Maven / Gradle / Ivy

The newest version!
package medeia.generic.util

object VersionSpecific {
  trait Lazy[+A] extends Serializable {
    def value: A
  }

  object Lazy {
    implicit def instance[A](implicit ev: => A): Lazy[A] =
      new Lazy[A] {
        override def value: A = ev
      }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy