either2modify

dev.constructive.eo.data.ModifyF.either2modify
object either2modify extends Composer[Either, ModifyF]

Prism → ModifyF. Hit writes f(a) through the Prism's build path; miss passes the leftover back via o.from(Left(xo)) — observably the same as the Prism's own .modify(f).

Attributes

Source
ModifyF.scala
Graph
Supertypes
trait Composer[Either, ModifyF]
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def to[S, T, A, B](o: Optic[S, T, A, B, Either]): Optic[S, T, A, B, ModifyF]

Attributes

Source
ModifyF.scala