Lens

korolev.util.Lens
case class Lens[S, S2](read: PartialFunction[S, S2], write: PartialFunction[(S, S2), S])

Very simple all-in-one optic.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

def ++[S3](lens: Lens[S2, S3]): Lens[S, S3]
def focus[S3](read: PartialFunction[S2, S3], write: PartialFunction[(S2, S3), S2]): Lens[S, S3]
def get(that: S): Option[S2]
def modify(that: S)(f: S2 => S2): S
def update(that: S, value: S2): S

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product