Constructors for Lens.
Attributes
- Companion
- trait
- Source
- Optic.scala
- Graph
-
- Supertypes
- Self type
-
Lens.type
Members list
Type members
Inherited and Abstract types
The names of the product elements.
The name of the type.
Value members
Concrete methods
Creates a lens on the field focusTerm of the record source. The field is looked up by the term's name, so focusTerm must be one of source's fields. If it is not, the lens throws ArrayIndexOutOfBoundsException the first time it reads or writes a value (see docs/dev/issues.md). Reflect.Record#lensByName and the $ macro of CompanionOptics check the field for you.
Creates a lens on the field focusTerm of the record source. The field is looked up by the term's name, so focusTerm must be one of source's fields. If it is not, the lens throws ArrayIndexOutOfBoundsException the first time it reads or writes a value (see docs/dev/issues.md). Reflect.Record#lensByName and the $ macro of CompanionOptics check the field for you.
Attributes
- Throws
-
java.lang.IllegalArgumentException
if
sourceorfocusTermis null - Source
- Optic.scala
Composes two lenses: the result focuses on second's focus inside first's focus. It is the same as first(second).
Composes two lenses: the result focuses on second's focus inside first's focus. It is the same as first(second).
Attributes
- Throws
-
java.lang.IllegalArgumentException
if
firstorsecondis null - Source
- Optic.scala