Uses of Interface
com.jnape.palatable.lambda.optics.Lens
Packages that use Lens
Package
Description
-
Uses of Lens in com.jnape.palatable.lambda.adt.hmap
Subinterfaces of Lens in com.jnape.palatable.lambda.adt.hmapModifier and TypeInterfaceDescriptioninterface
A lens that focuses on theheterogeneous list
of values pointed at by one or moretypesafe keys
that must all exist in the sameHMap
to be collectively extracted. -
Uses of Lens in com.jnape.palatable.lambda.optics
Subinterfaces of Lens in com.jnape.palatable.lambda.opticsModifier and TypeInterfaceDescriptionstatic interface
Lens.Simple<S,
A> A convenience type with a simplified type signature for common lenses with both unified "larger" values and unified "smaller" values.Methods in com.jnape.palatable.lambda.optics that return LensModifier and TypeMethodDescriptionLeft-to-right composition of optics.Dually focus on two lenses at the same time.Right-to-Left composition of optics.Contravariantly mapA <- B
.Dually map contravariantly over the left parameter and covariantly over the right parameter.Contravariantly map over the left parameter.Covariantly map over the right parameter.Sequence both thisApplicative
andappB
, discarding thisApplicative's
result and returningappB
.Sequence both thisApplicative
andappB
, discardingappB's
result and returning thisApplicative
.Chain dependent computations that may continue or short-circuit based on previous results.Covariantly transmute this functor's parameter using the given mapping function.static <S,
T, A, B>
Lens<S, T, A, B> Static factory method for creating a lens from a getter function and a setter function.static <S,
T, A, B>
Lens<S, T, A, B> Promote an optic with compatible bounds to aLens
.Covariantly mapA
toC
, yielding a new optic.Contravariantly mapB
toZ
, yielding a new optic.Contravariantly mapS
toR
, yielding a new optic.Covariantly mapT
toU
, yielding a new optic.Lens.pure
(U u) Lift the valueb
into this applicative functor.Iso.toLens()
Lens.trampolineM
(Fn1<? super T, ? extends MonadRec<RecursiveResult<T, U>, Lens<S, ?, A, B>>> fn) Given some operation yielding aRecursiveResult
inside thisMonadRec
, internally trampoline the operation until it yields atermination
instruction.Given another instance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.Methods in com.jnape.palatable.lambda.optics that return types with arguments of type LensModifier and TypeMethodDescriptionMethods in com.jnape.palatable.lambda.optics with parameters of type LensModifier and TypeMethodDescriptionDually focus on two lenses at the same time.static <S,
A, B> Lens.Simple <S, Tuple2<A, B>> Specialization ofboth(Lens, Lens)
for simple lenses.Method parameters in com.jnape.palatable.lambda.optics with type arguments of type LensModifier and TypeMethodDescriptionSequence both thisApplicative
andappB
, discarding thisApplicative's
result and returningappB
.Sequence both thisApplicative
andappB
, discardingappB's
result and returning thisApplicative
.Chain dependent computations that may continue or short-circuit based on previous results.Lens.trampolineM
(Fn1<? super T, ? extends MonadRec<RecursiveResult<T, U>, Lens<S, ?, A, B>>> fn) Given some operation yielding aRecursiveResult
inside thisMonadRec
, internally trampoline the operation until it yields atermination
instruction.Given another instance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports. -
Uses of Lens in com.jnape.palatable.lambda.optics.lenses
Methods in com.jnape.palatable.lambda.optics.lenses that return LensModifier and TypeMethodDescriptionA lens that focuses on a copy of aMap
as a subtypeM
.Given a lens, liftA
intoMaybe
.Given a lens, liftT
intoMaybe
.static <S,
T, A, B>
Lens<S, T, A, B> static <S,
T, A, B>
Lens<S, T, A, B> static <S,
T, A, B>
Lens<S, T, A, B> static <S,
T, A, B>
Lens<S, T, A, B> A lens that focuses on a value at a key in a map, as aMaybe
, and produces a subtypeM
on the way back out.Methods in com.jnape.palatable.lambda.optics.lenses with parameters of type Lens