A PTraversal can be seen as a POptional generalised to 0 to n targets where n can be infinite.
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]
- Type Params
- 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
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
- Source
- Traversal.scala
Concrete methods
compose a PTraversal with another PTraversal
compose a PTraversal with another PTraversal
- Source
- Traversal.scala
map each target to a Monoid and combine the results
map each target to a Monoid and combine the results
- Source
- Traversal.scala
modify polymorphically the target of a PTraversal with a function
modify polymorphically the target of a PTraversal with a function
- Source
- Traversal.scala
PTraversal.modifyA for a Parallel
applicative functor.
PTraversal.modifyA for a Parallel
applicative functor.
- Source
- Traversal.scala
replace polymorphically the target of a PTraversal with a value
replace polymorphically the target of a PTraversal with a value
- Source
- Traversal.scala
Deprecated methods
alias to composeIso
alias to composeIso
- Deprecated
[Since version 3.0.0-M1]
- Source
- Traversal.scala
alias to composePrism
alias to composePrism
- Deprecated
[Since version 3.0.0-M1]
- Source
- Traversal.scala
alias to composeLens
alias to composeLens
- Deprecated
[Since version 3.0.0-M1]
- Source
- Traversal.scala
alias to composeTraversal
alias to composeTraversal
- Deprecated
[Since version 3.0.0-M1]
- Source
- Traversal.scala
alias to composeOptional
alias to composeOptional
- Deprecated
[Since version 3.0.0-M1]
- Source
- Traversal.scala
compose a PTraversal with a Fold
compose a PTraversal with a Fold
- Deprecated
[Since version 3.0.0-M1]
- Source
- Traversal.scala
compose a PTraversal with a Getter
compose a PTraversal with a Getter
- Deprecated
[Since version 3.0.0-M1]
- Source
- Traversal.scala
compose a PTraversal with a PIso
compose a PTraversal with a PIso
- Deprecated
[Since version 3.0.0-M1]
- Source
- Traversal.scala
compose a PTraversal with a PLens
compose a PTraversal with a PLens
- Deprecated
[Since version 3.0.0-M1]
- Source
- Traversal.scala
compose a PTraversal with a POptional
compose a PTraversal with a POptional
- Deprecated
[Since version 3.0.0-M1]
- Source
- Traversal.scala
compose a PTraversal with a PPrism
compose a PTraversal with a PPrism
- Deprecated
[Since version 3.0.0-M1]
- Source
- Traversal.scala
compose a PTraversal with a PSetter
compose a PTraversal with a PSetter
- Deprecated
[Since version 3.0.0-M1]
- Source
- Traversal.scala
compose a PTraversal with a PTraversal
compose a PTraversal with a PTraversal
- Deprecated
[Since version 3.0.0-M1]
- Source
- Traversal.scala
Inherited methods
check if all targets satisfy the predicate
check if all targets satisfy the predicate
- Inherited from
- Fold
- Source
- Fold.scala
check if at least one target satisfies the predicate
check if at least one target satisfies the predicate
- Inherited from
- Fold
- Source
- Fold.scala
find the first target matching the predicate
find the first target matching the predicate
- Inherited from
- Fold
- Source
- Fold.scala
combine all targets using a target's Monoid
combine all targets using a target's Monoid
- Inherited from
- Fold
- Source
- Fold.scala
check if there is at least one target
check if there is at least one target
- Inherited from
- Fold
- Source
- Fold.scala
Compose with a function lifted into a Getter
Compose with a function lifted into a Getter
- Inherited from
- Fold
- Source
- Fold.scala
Deprecated and Inherited methods
- Deprecated
[Since version 3.0.0-M4]
- Inherited from
- Fold
- Source
- Fold.scala
- Deprecated
[Since version 3.0.0-M4]
- Inherited from
- Fold
- Source
- Fold.scala
alias to replace
alias to replace
- Deprecated
[Since version 3.0.0-M1]
- Inherited from
- PSetter
- Source
- Setter.scala