TraversalSyntax

monocle.TraversalSyntax
final case class TraversalSyntax[S, A](self: Traversal[S, A]) extends AnyVal

Extension methods for monomorphic Traversal

Attributes

Source:
Traversal.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class AnyVal
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

def at[I, A1](i: I)(implicit evAt: At[A, I, A1]): Traversal[S, A1]

Attributes

Source:
Traversal.scala
def each[C](implicit evEach: Each[A, C]): Traversal[S, C]

Attributes

Source:
Traversal.scala
def filter(predicate: A => Boolean): Traversal[S, A]

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

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

Attributes

Source:
Traversal.scala
def filterIndex[I, A1](predicate: I => Boolean)(implicit ev: FilterIndex[A, I, A1]): Traversal[S, A1]

Attributes

Source:
Traversal.scala
def withDefault[A1](defaultValue: A1)(implicit evOpt: A =:= Option[A1]): Traversal[S, A1]

Attributes

Source:
Traversal.scala

Deprecated methods

def index[I, A1](i: I, evIndex: Index[A, I, A1]): Traversal[S, A1]

Attributes

Deprecated
true
Source:
Traversal.scala

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product