trait Lens[A, B]

Represents a simple-as-they-come lens, primarily for use with scenes in order to extract and replace the parts of, say, a model that the scene wants to operate on.

class Object
trait Matchable
class Any

Value members

Abstract methods

def get(from: A): B
def set(into: A, value: B): A

Concrete methods

def >=>[C](next: Lens[B, C]): Lens[A, C]
def andThen[C](next: Lens[B, C]): Lens[A, C]
def modify(a: A, f: B => B): A