object Optic extends Serializable
- Alphabetic
- By Inheritance
- Optic
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- implicit class AtPartiallyAppliedSyntax[GetError >: (OpticModule.this)#OpticFailure, SetError >: GetError, Piece, Whole] extends AnyRef
Provides implicit syntax for accessing the specified index of a chunk accessed by a partially applied optic.
- implicit class ComposeSyntax[GetWhole, SetWholeBefore, SetPiece, GetError, SetError, GetPiece, SetWholeAfter] extends AnyRef
Provides implicit syntax for composing optics.
- implicit class ConsPartiallyAppliedSyntax[SetPiece, GetError >: (OpticModule.this)#OpticFailure, SetError, GetPiece, SetWhole] extends AnyRef
Provides implicit syntax for accessing the
::
case of aList
accessed by a partially applied optic. - implicit class EOpticSyntax[GetWhole, SetWholeBefore, SetPiece, Error, GetPiece, SetWholeAfter] extends AnyRef
Provides implicit syntax for when the error types of getting and setting are unified.
- implicit class FilterPartiallyAppliedSyntax[GetError >: (OpticModule.this)#OpticFailure, SetError >: GetError, Piece, Whole] extends AnyRef
Provides implicit syntax for accessing a filtered subset of a chunk accessed by a partially applied optic.
- implicit class FirstPartiallyAppliedSyntax[SetPiece, GetError, SetError >: GetError, GetPiece, Whole, Piece2] extends AnyRef
Provides implicit syntax for accessing the first element of a tuple accessed by a partially applied optic.
- implicit class ForEachSyntax[GetWhole, SetWholeBefore <: GetWhole, SetPiece, GetError >: SetError, SetError, SetError1 >: GetError, GetPiece, SetWholeAfter] extends AnyRef
Provides implicit syntax for applying an optic to each element of a collection accessed by another optic.
- implicit class HeadPartiallyAppliedSyntax[GetError >: (OpticModule.this)#OpticFailure, SetError >: GetError, Piece, Whole] extends AnyRef
Provides implicit syntax for accessing the head of a list accessed by a partially applied optic.
- implicit class IsoSyntax[Whole, Piece] extends AnyRef
Provides implicit syntax for when the optic is an isomorphism.
- implicit class KeyPartiallyAppliedSyntax[GetError >: (OpticModule.this)#OpticFailure, SetError >: GetError, Key, Value, Whole] extends AnyRef
Provides implicit syntax for accessing the value at the specified key in a map accessed by a partially applied optic.
- implicit class LeftPartiallyAppliedSyntax[SetPiece, GetError >: (OpticModule.this)#OpticFailure, SetError, GetPiece, SetWhole, Piece2] extends AnyRef
Provides implicit syntax for accessing the
Left
case of anEither
accessed by a partially applied optic. - implicit class LensSyntax[GetWhole, SetWholeBefore, SetPiece, GetError, SetError, GetPiece, SetWholeAfter] extends AnyRef
Provides implicit syntax for when the whole is required to set.
- implicit class NonePartiallyAppliedSyntax[GetError >: (OpticModule.this)#OpticFailure, SetError, Piece, SetWhole] extends AnyRef
Provides implicit syntax for accessing the
None
case of anOption
accessed by a partially applied optic. - implicit class PariallyAppliedOpticSyntax[SetPiece, Error, GetPiece, SetWholeAfter] extends AnyRef
Provides implicit syntax for working with partially applied optics.
- implicit class PrismSyntax[GetWhole, SetPiece, GetError, SetError, GetPiece, SetWholeAfter] extends AnyRef
Provides implicit syntax for when thewhole is not required to set.
- implicit class RightPartiallyAppliedSyntax[SetPiece, GetError >: (OpticModule.this)#OpticFailure, SetError, GetPiece, SetWhole, Piece2] extends AnyRef
Provides implicit syntax for accessing the
Right
case of anEither
accessed by a partially applied optic. - implicit class SecondPartiallyAppliedSyntax[SetPiece, GetError, SetError >: GetError, GetPiece, Whole, Piece2] extends AnyRef
Provides implicit syntax for accessing the second element of a tuple accessed by a partially applied optic.
- implicit class SlicePartiallyAppliedSyntax[GetError >: (OpticModule.this)#OpticFailure, SetError >: GetError, Piece, Whole] extends AnyRef
Provides implicit syntax for accessing a slice of a chunk accessed by a partially applied optic.
- implicit class SomePartiallyAppliedSyntax[SetPiece, GetError >: (OpticModule.this)#OpticFailure, SetError, GetPiece, SetWhole] extends AnyRef
Provides implicit syntax for accessing the
Some
case of anOption
accessed by a partially applied optic. - implicit class TailPartiallyAppliedSyntax[GetError >: (OpticModule.this)#OpticFailure, SetError >: GetError, Piece, Whole] extends AnyRef
Provides implicit syntax for accessing the tail of a list accessed by a partially applied optic.
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def at[A](n: Int): (OpticModule.this)#Optional[Chunk[A], A]
An optic that accesses the specified index of a chunk.
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def cons[A, B]: (OpticModule.this)#ZPrism[List[A], List[B], (A, List[A]), (B, List[B])]
An optic that accesses the
::
case of aList
. - final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def filter[A](f: (A) => Boolean): (OpticModule.this)#Traversal[Chunk[A], A]
An optic that accesses a filtered subset of a chunk.
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def first[A, B, C]: (OpticModule.this)#ZLens[(A, B), (C, B), A, C]
An optic that accesses the first element of a tuple.
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def head[A]: (OpticModule.this)#Optional[List[A], A]
An optic that accesses the head of a list.
- def identity[A]: (OpticModule.this)#Iso[A, A]
The identity optic.
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def key[K, V](k: K): (OpticModule.this)#Optional[Map[K, V], V]
An optic that accesses the value at the specified key in a map.
- def left[A, B, C]: (OpticModule.this)#ZPrism[Either[A, B], Either[C, B], A, C]
An optic that accesses the
Left
case of anEither
. - final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def none[A]: (OpticModule.this)#Prism[Option[A], Unit]
An optic that accesses the
None
case of anOption
. - final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def right[A, B, C]: (OpticModule.this)#ZPrism[Either[A, B], Either[A, C], B, C]
An optic that accesses the
Right
case of anEither
. - def second[A, B, C]: (OpticModule.this)#ZLens[(A, B), (A, C), B, C]
An optic that accesses the second element of a tuple.
- def slice[A](from: Int, until: Int): (OpticModule.this)#Traversal[Chunk[A], A]
An optic that accesses a slice of a chunk.
- def some[A, B]: (OpticModule.this)#ZPrism[Option[A], Option[B], A, B]
An optic that accesses the
Some
case of anOption
. - final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def tail[A]: (OpticModule.this)#Optional[List[A], List[A]]
An optic that accesses the tail of a list.
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()