object PIso extends IsoInstances with Serializable
- Source
- Iso.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- PIso
- Serializable
- IsoInstances
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Value Members
- 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.
- def id[S, T]: PIso[S, T, S, T]
create a PIso between any type and itself.
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, ...)
- implicit val isoCategory: Category[Iso]
- Definition Classes
- IsoInstances
- implicit def isoSyntax[S, A](self: Iso[S, A]): IsoSyntax[S, A]
- implicit def pIsoSyntax[S, T, A, B](self: PIso[S, T, A, B]): PIsoSyntax[S, T, A, B]