A PTraversal can be seen as a POptional generalised to 0 to n targets where n can be infinite.
PTraversal stands for Polymorphic Traversal as it replace and modify methods change a type A
to B
and S
to
T
. Traversal is a type alias for PTraversal restricted to monomorphic updates:
type Traversal[S, A] = PTraversal[S, S, A, A]
Attributes
- A
the target of a PTraversal
- B
the modified target of a PTraversal
- S
the source of a PTraversal
- T
the modified source of a PTraversal
- See also:
- Companion:
- object
- Source:
- Traversal.scala
- Graph
- Supertypes
- Known subtypes
- Self type
Members list
Value members
Abstract methods
modify polymorphically the target of a PTraversal with an Applicative function all traversal methods are written in terms of modifyA
modify polymorphically the target of a PTraversal with an Applicative function all traversal methods are written in terms of modifyA
Attributes
- Source:
- Traversal.scala
Concrete methods
compose a PTraversal with another PTraversal
view a PTraversal as a Fold
view a PTraversal as a PSetter
map each target to a Monoid and combine the results
Attributes
- Definition Classes
- Source:
- Traversal.scala
modify polymorphically the target of a PTraversal with a function
PTraversal.modifyA for a Parallel
applicative functor.
replace polymorphically the target of a PTraversal with a value
Attributes
- Definition Classes
- Source:
- Traversal.scala
Deprecated methods
alias to composeIso
alias to composePrism
alias to composeLens
alias to composeTraversal
alias to composeOptional
compose a PTraversal with a Fold
compose a PTraversal with a Fold
Attributes
- Deprecated
[Since version 3.0.0-M1]
- Source:
- Traversal.scala
compose a PTraversal with a Getter
compose a PTraversal with a Getter
Attributes
- Deprecated
[Since version 3.0.0-M1]
- Source:
- Traversal.scala
compose a PTraversal with a PIso
compose a PTraversal with a PIso
Attributes
- Deprecated
[Since version 3.0.0-M1]
- Source:
- Traversal.scala
compose a PTraversal with a PLens
compose a PTraversal with a PLens
Attributes
- Deprecated
[Since version 3.0.0-M1]
- Source:
- Traversal.scala
compose a PTraversal with a POptional
compose a PTraversal with a POptional
Attributes
- Deprecated
[Since version 3.0.0-M1]
- Source:
- Traversal.scala
compose a PTraversal with a PPrism
compose a PTraversal with a PPrism
Attributes
- Deprecated
[Since version 3.0.0-M1]
- Source:
- Traversal.scala
compose a PTraversal with a PSetter
compose a PTraversal with a PSetter
Attributes
- Deprecated
[Since version 3.0.0-M1]
- Source:
- Traversal.scala
compose a PTraversal with a PTraversal
compose a PTraversal with a PTraversal
Attributes
- Deprecated
[Since version 3.0.0-M1]
- Source:
- Traversal.scala
Inherited methods
check if all targets satisfy the predicate
check if at least one target satisfies the predicate
find the first target matching the predicate
combine all targets using a target's Monoid
get all the targets of a Fold
get the first target
Attributes
- Inherited from:
- Fold
- Source:
- Fold.scala
check if there is no target
get the last target
calculate the number of targets
check if there is at least one target
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- Fold
- Source:
- Fold.scala
Compose with a function lifted into a Getter
Deprecated and Inherited methods
Attributes
- Deprecated
[Since version 3.0.0-M4]
- Inherited from:
- Fold
- Source:
- Fold.scala
Attributes
- Deprecated
[Since version 3.0.0-M4]
- Inherited from:
- Fold
- Source:
- Fold.scala
alias to replace
alias to replace
Attributes
- Deprecated
[Since version 3.0.0-M1]
- Inherited from:
- PSetter
- Source:
- Setter.scala