c

monocle

PrismSyntax

final case class PrismSyntax[S, A](self: Prism[S, A]) extends AnyVal with Product with Serializable

Source
Prism.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. PrismSyntax
  2. Serializable
  3. Product
  4. Equals
  5. AnyVal
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new PrismSyntax(self: Prism[S, A])

Value Members

  1. def at[I, A1](i: I)(implicit evAt: At[A, I, A1]): Optional[S, A1]
  2. def below[F[_]](implicit F: Traverse[F]): Prism[F[S], F[A]]

    lift a Prism such as it only matches if all elements of F[S] are getOrModify

  3. def each[C](implicit evEach: Each[A, C]): Traversal[S, C]
  4. def filter(predicate: (A) => Boolean): Optional[S, A]

    Select all the elements which satisfies the predicate.

    Select all the elements which satisfies the predicate. This combinator can break the fusion property see Optional.filter for more details.

  5. def filterIndex[I, A1](predicate: (I) => Boolean)(implicit ev: FilterIndex[A, I, A1]): Traversal[S, A1]
  6. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  7. def productElementNames: Iterator[String]
    Definition Classes
    Product
  8. def withDefault[A1](defaultValue: A1)(implicit evOpt: =:=[A, Option[A1]]): Prism[S, A1]

Deprecated Value Members

  1. def index[I, A1](i: I, evIndex: Index[A, I, A1]): Optional[S, A1]
    Annotations
    @deprecated
    Deprecated

    (Since version 3.1.0) Preserved for bincompat