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
}
}
}