PLens

object PLens extends LensInstances
Companion
class
Source
Lens.scala
class Object
trait Matchable
class Any

Value members

Concrete methods

def apply[S, T, A, B](_get: S => A)(_set: B => S => T): PLens[S, T, A, B]

create a PLens using a pair of functions: one to get the target, one to replace the target.

create a PLens using a pair of functions: one to get the target, one to replace the target.

See also

macro module for methods generating PLens with less boiler plate

Source
Lens.scala
def codiagonal[S, T]: PLens[Either[S, S], Either[T, T], S, T]

Deprecated methods

@deprecated("use PIso.id", since = "3.0.0-M2")
def id[S, T]: PLens[S, T, S, T]
Deprecated
[Since version 3.0.0-M2]
Source
Lens.scala

Implicits

Implicits

implicit def lensSyntax[S, A](self: Lens[S, A]): LensSyntax[S, A]
implicit def pLensSyntax[S, T, A, B](self: PLens[S, T, A, B]): PLensSyntax[S, T, A, B]

Inherited implicits

implicit val lensChoice: Choice[Lens]
Inherited from
LensInstances
Source
Lens.scala
implicit def lensInvariant[S]: Invariant[[_] =>> Lens[S, _$14]]
Inherited from
LensInstances
Source
Lens.scala
implicit def lensSemigroupal[S]: Semigroupal[[_] =>> Lens[S, _$16]]
Inherited from
LensInstances
Source
Lens.scala