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 TypeInterfaceDescriptioninterfaceA lens that focuses on theheterogeneous listof values pointed at by one or moretypesafe keysthat must all exist in the sameHMapto be collectively extracted. -
Uses of Lens in com.jnape.palatable.lambda.optics
Subinterfaces of Lens in com.jnape.palatable.lambda.opticsModifier and TypeInterfaceDescriptionstatic interfaceLens.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 thisApplicativeandappB, discarding thisApplicative'sresult and returningappB.Sequence both thisApplicativeandappB, discardingappB'sresult 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 mapAtoC, yielding a new optic.Contravariantly mapBtoZ, yielding a new optic.Contravariantly mapStoR, yielding a new optic.Covariantly mapTtoU, yielding a new optic.Lens.pure(U u) Lift the valuebinto this applicative functor.Iso.toLens()Lens.trampolineM(Fn1<? super T, ? extends MonadRec<RecursiveResult<T, U>, Lens<S, ?, A, B>>> fn) Given some operation yielding aRecursiveResultinside thisMonadRec, internally trampoline the operation until it yields aterminationinstruction.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 thisApplicativeandappB, discarding thisApplicative'sresult and returningappB.Sequence both thisApplicativeandappB, discardingappB'sresult 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 aRecursiveResultinside thisMonadRec, internally trampoline the operation until it yields aterminationinstruction.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 aMapas a subtypeM.Given a lens, liftAintoMaybe.Given a lens, liftTintoMaybe.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 subtypeMon the way back out.Methods in com.jnape.palatable.lambda.optics.lenses with parameters of type Lens