APrism_

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

Value members

Concrete methods

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

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

create a polymorphic APrism_ 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]: APrism_[S, T, S, T]

polymorphic identity of an APrism_

polymorphic identity of an APrism_