PIso

object PIso extends IsoInstances
Companion
class
Source
Iso.scala
class Object
trait Matchable
class Any

Value members

Concrete methods

def apply[S, T, A, B](_get: S => A)(_reverseGet: B => T): PIso[S, T, A, B]

create a PIso using a pair of functions: one to get the target and one to get the source.

create a PIso using a pair of functions: one to get the target and one to get the source.

Source
Iso.scala
def id[S, T]: PIso[S, T, S, T]

create a PIso between any type and itself. id is the zero element of optics composition, for all optics o of type O (e.g. Lens, Iso, Prism, ...): o composeIso Iso.id == o Iso.id composeO o == o (replace composeO by composeLens, composeIso, composePrism, ...)

create a PIso between any type and itself. id is the zero element of optics composition, for all optics o of type O (e.g. Lens, Iso, Prism, ...): o composeIso Iso.id == o Iso.id composeO o == o (replace composeO by composeLens, composeIso, composePrism, ...)

Source
Iso.scala

Implicits

Implicits

implicit def isoSyntax[S, A](self: Iso[S, A]): IsoSyntax[S, A]
Source
Iso.scala
implicit def pIsoSyntax[S, T, A, B](self: PIso[S, T, A, B]): PIsoSyntax[S, T, A, B]
Source
Iso.scala

Inherited implicits

implicit val isoCategory: Category[Iso]
Inherited from
IsoInstances
Source
Iso.scala