
monocle.function.Field3.scala Maven / Gradle / Ivy
package monocle.function
import monocle.Lens
import scala.annotation.implicitNotFound
@implicitNotFound("Could not find an instance of Field3[${S},${A}], please check Monocle instance location policy to " +
"find out which import is necessary")
trait Field3[S, A] {
/** Creates a Lens from S to it is third element */
def third: Lens[S, A]
}
object Field3 extends Field3Functions
trait Field3Functions {
def third[S, A](implicit ev: Field3[S, A]): Lens[S, A] = ev.third
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy