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

eu.timepit.refined.api.Refined.scala Maven / Gradle / Ivy

The newest version!
package eu.timepit.refined.api

infix opaque type Refined[T, P] = T

object Refined {

  def unsafeApply[T, P](t: T): Refined[T, P] = t

  def unapply[T, P](r: Refined[T, P]): Some[T] = Some(r)

  extension [T, P](r: Refined[T, P]) {
    def value: T = r
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy