Lens

indigo.shared.utils.Lens
See theLens companion object
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.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

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