A PSetter is a generalisation of Functor map:
A PSetter is a generalisation of Functor map:
map: (A => B) => F[A] => F[B]
modify: (A => B) => S => T
PSetter stands for Polymorphic Setter as it replace and modify methods change
a type A
to B
and S
to T
.
Setter is a type alias for PSetter restricted to monomorphic updates:
type Setter[S, A] = PSetter[S, S, A, A]
PTraversal, POptional, PPrism, PLens and PIso are valid PSetter
Value members
Abstract methods
modify polymorphically the target of a PSetter with a function
modify polymorphically the target of a PSetter with a function
- Source
- Setter.scala
replace polymorphically the target of a PSetter with a value
replace polymorphically the target of a PSetter with a value
- Source
- Setter.scala
Deprecated methods
alias to composeIso
alias to composeIso
- Deprecated
[Since version 3.0.0-M1]
- Source
- Setter.scala
alias to composePrism
alias to composePrism
- Deprecated
[Since version 3.0.0-M1]
- Source
- Setter.scala
alias to composeLens
alias to composeLens
- Deprecated
[Since version 3.0.0-M1]
- Source
- Setter.scala
alias to composeTraversal
alias to composeTraversal
- Deprecated
[Since version 3.0.0-M1]
- Source
- Setter.scala
alias to composeOptional
alias to composeOptional
- Deprecated
[Since version 3.0.0-M1]
- Source
- Setter.scala
- Deprecated
[Since version 3.0.0-M1]
- Source
- Setter.scala
- Deprecated
[Since version 3.0.0-M1]
- Source
- Setter.scala
- Deprecated
[Since version 3.0.0-M1]
- Source
- Setter.scala
- Deprecated
[Since version 3.0.0-M1]
- Source
- Setter.scala
- Deprecated
[Since version 3.0.0-M1]
- Source
- Setter.scala
compose a PSetter with a PTraversal
compose a PSetter with a PTraversal
- Deprecated
[Since version 3.0.0-M1]
- Source
- Setter.scala
alias to replace
alias to replace
- Deprecated
[Since version 3.0.0-M1]
- Source
- Setter.scala