Uses of Interface
com.jnape.palatable.lambda.optics.Iso
Packages that use Iso
Package
Description
-
Uses of Iso in com.jnape.palatable.lambda.adt.hmap
Subinterfaces of Iso in com.jnape.palatable.lambda.adt.hmapModifier and TypeInterfaceDescriptioninterface
TypeSafeKey<A,
B> An interface representing a parametrized key for use inHMap
s.static interface
Method parameters in com.jnape.palatable.lambda.adt.hmap with type arguments of type Iso -
Uses of Iso in com.jnape.palatable.lambda.optics
Subinterfaces of Iso in com.jnape.palatable.lambda.opticsModifier and TypeInterfaceDescriptionstatic interface
Iso.Simple<S,
A> A convenience type with a simplified type signature for common isos with both unified "larger" values and unified "smaller" values.Methods in com.jnape.palatable.lambda.optics that return IsoModifier and TypeMethodDescriptionLeft-to-right composition of optics.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>
Iso<S, T, A, B> Static factory method for creating an iso from a function and it's inverse.static <S,
T, A, B>
Iso<S, T, A, B> Iso.iso
(Optic<? super Profunctor<?, ?, ?>, ? super Functor<?, ?>, S, T, A, B> optic) Promote an optic with compatible bounds to anIso
.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.Iso.mirror()
Flip thisIso
around.Iso.pure
(U u) Lift the valueb
into this applicative functor.Iso.trampolineM
(Fn1<? super T, ? extends MonadRec<RecursiveResult<T, U>, Iso<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 IsoModifier and TypeMethodDescriptionMethod parameters in com.jnape.palatable.lambda.optics with type arguments of type IsoModifier and TypeMethodDescriptionSequence both thisApplicative
andappB
, discarding thisApplicative's
result and returningappB
.Sequence both thisApplicative
andappB
, discardingappB's
result and returning thisApplicative
.default <U> Iso.Simple
<S, A> Sequence both thisApplicative
andappB
, discardingappB's
result and returning thisApplicative
.Chain dependent computations that may continue or short-circuit based on previous results.Iso.trampolineM
(Fn1<? super T, ? extends MonadRec<RecursiveResult<T, U>, Iso<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 Iso in com.jnape.palatable.lambda.optics.lenses
Methods in com.jnape.palatable.lambda.optics.lenses with parameters of type IsoModifier and TypeMethodDescriptionstatic <A,
B> Iso.Simple <Iterable<A>, Iterable<B>> An iso focusing on the mapped values of anIterable
.static <K,
V, V2> Lens.Simple <Map<K, V>, Map<K, V2>> MapLens.mappingValues
(Iso<V, V, V2, V2> iso) A lens that focuses on a map while mapping its values with the mappingIso
.