Prism_

object Prism_
Companion:
class
class Object
trait Matchable
class Any
Prism_.type

Value members

Concrete methods

final def apply[S, T, A, B](_viewOrModify: S => Either[T, A])(review: B => T): Prism_[S, T, A, B]

create a polymorphic Prism_ from a matcher function that produces an Either and a review function

create a polymorphic Prism_ from a matcher function that produces an Either and a review function

the matcher function returns an Either to allow for type-changing prisms in the case where the input does not match.

final def id[S, T]: Prism_[S, T, S, T]

polymorphic identity of a Prism_

polymorphic identity of a Prism_

Implicits

Implicits

implicit def aPrismToPrism[S, T, A, B](aPrism: APrism_[S, T, A, B]): Prism_[S, T, A, B]

implicit conversion from APrism_ to Prism_

implicit conversion from APrism_ to Prism_