PIso

monocle.PIso$
See thePIso companion trait
object PIso extends IsoInstances

Attributes

Companion:
trait
Source:
Iso.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
PIso.type

Members list

Concise view

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.

Attributes

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, ...)

Attributes

Source:
Iso.scala

Implicits

Implicits

implicit def isoSyntax[S, A](self: Iso[S, A]): IsoSyntax[S, A]

Attributes

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

Attributes

Source:
Iso.scala

Inherited implicits

implicit val isoCategory: Category[Iso]

Attributes

Inherited from:
IsoInstances
Source:
Iso.scala