object Prism

Source
Prism.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Prism
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. def apply[S, A](_getOption: (S) => Option[A])(_reverseGet: (A) => S): Prism[S, A]

    alias for PPrism apply restricted to monomorphic update

  2. def only[A](a: A)(implicit A: Eq[A]): Prism[A, Unit]

    a Prism that checks for equality with a given value

  3. def partial[S, A](get: PartialFunction[S, A])(reverseGet: (A) => S): Prism[S, A]

    Create a Prism using a partial function rather than Option.

Deprecated Value Members

  1. def id[A]: Prism[A, A]
    Annotations
    @deprecated
    Deprecated

    (Since version 3.0.0-M2) use Iso.id