LensSyntax

class LensSyntax[GetWhole, SetWholeBefore, SetPiece, GetError, SetError, GetPiece, SetWholeAfter](self: Optic[GetWhole, SetWholeBefore, SetPiece, GetError, SetError, GetPiece, SetWholeAfter])

Provides implicit syntax for when the whole is required to set.

Provides implicit syntax for when the whole is required to set.

class Object
trait Matchable
class Any

Value members

Concrete methods

def set(piece: SetPiece)(whole: GetWhole & SetWholeBefore): OpticResult[SetError, 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.