EOpticSyntax
class EOpticSyntax[GetWhole, SetWholeBefore, SetPiece, Error, GetPiece, SetWholeAfter](self: EOptic[GetWhole, SetWholeBefore, SetPiece, Error, GetPiece, SetWholeAfter])
Provides implicit syntax for when the error types of getting and setting are unified.
Provides implicit syntax for when the error types of getting and setting are unified.
class Object
trait Matchable
class Any
Value members
Concrete methods
def update(whole: GetWhole & SetWholeBefore)(f: GetPiece => SetPiece): OpticResult[Error, SetWholeAfter]
Updates the specified whole by transforming a piece of it using the
function f
.
Updates the specified whole by transforming a piece of it using the
function f
.