t

monocle.function

PlatedFunctions

trait PlatedFunctions extends CommonPlatedFunctions

Source
Plated.scala
Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. PlatedFunctions
  2. CommonPlatedFunctions
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. def children[A](a: A)(implicit arg0: Plated[A]): List[A]

    get the immediate self-similar children of a target

  2. def plate[A](implicit P: Plated[A]): Traversal[A, A]

    Traversal of immediate self-similar children

    Traversal of immediate self-similar children

    Definition Classes
    CommonPlatedFunctions
  3. def rewrite[A](f: (A) => Option[A])(a: A)(implicit arg0: Plated[A]): A

    rewrite a target by applying a rule as often as possible until it reaches a fixpoint (this is an infinite loop if there is no fixpoint)

  4. def rewriteOf[A](l: Setter[A, A])(f: (A) => Option[A])(a: A): A

    rewrite a target by applying a rule within a Setter, as often as possible until it reaches a fixpoint (this is an infinite loop if there is no fixpoint)

  5. def transform[A](f: (A) => A)(a: A)(implicit arg0: Plated[A]): A

    transform every element

  6. def transformCounting[A](f: (A) => Option[A])(a: A)(implicit arg0: Plated[A]): (Int, A)

    transforming counting changes

  7. def transformM[A, M[_]](f: (A) => M[A])(a: A)(implicit arg0: Plated[A], arg1: Monad[M]): M[A]

    transforming every element using monadic transformation

  8. def transformOf[A](l: Setter[A, A])(f: (A) => A)(a: A): A

    transform every element by applying a Setter

  9. def universe[A](a: A)(implicit arg0: Plated[A]): LazyList[A]

    get all transitive self-similar elements of a target, including itself