Lens

trait Lens[T, U]

A Lens defines a functional way of handling getters/setters. They're useful for extending transformations on a part of a case class to the whole case class by updating that one component

Companion:
object
class Object
trait Matchable
class Any

Value members

Abstract methods

def get(t: T): U
def set(t: T, u: U): T

Concrete methods

def apply(t: T): U