S
- the type of both "larger" valuesA
- the type of both "smaller" values@FunctionalInterface public static interface Iso.Simple<S,A> extends Iso<S,S,A,A>, Optic.Simple<Profunctor<?,?,?>,Functor<?,?>,S,A>
Iso.Simple<S,A>
Modifier and Type | Method and Description |
---|---|
static <S,A> Iso.Simple<S,A> |
adapt(Optic<? super Profunctor<?,?,?>,? super Functor<?,?>,S,S,A,A> optic)
Adapt an
Optic with the right variance to an Iso.Simple . |
default <B> Iso.Simple<S,B> |
andThen(Iso.Simple<A,B> f)
Compose two simple isos from left to right.
|
default <B> Iso.Simple<S,B> |
andThen(Optic.Simple<? super Profunctor<?,?,?>,? super Functor<?,?>,A,B> f)
Compose two simple optics from left to right.
|
default <R> Iso.Simple<R,A> |
compose(Iso.Simple<R,S> g)
Compose two simple isos from right to left.
|
default <R> Iso.Simple<R,A> |
compose(Optic.Simple<? super Profunctor<?,?,?>,? super Functor<?,?>,R,S> g)
Compose two simple optics from right to left.
|
default <U> Iso.Simple<S,A> |
discardR(Applicative<U,Iso<S,?,A,A>> appB)
Sequence both this
Applicative and appB , discarding appB's result and
returning this Applicative . |
default Iso.Simple<A,S> |
mirror()
Flip this
Iso around. |
default Lens.Simple<S,A> |
toLens()
|
andThen, compose, contraMap, diMap, diMapL, diMapR, discardL, flatMap, fmap, iso, iso, mapA, mapB, mapS, mapT, pure, pureIso, simpleIso, trampolineM, unIso, zip
adapt
apply, monomorphize, optic, reframe
default <R> Iso.Simple<R,A> compose(Iso.Simple<R,S> g)
R
- the other simple iso' larger typeg
- the other simple isodefault <B> Iso.Simple<S,B> andThen(Iso.Simple<A,B> f)
B
- the other simple iso' smaller typef
- the other simple isodefault Iso.Simple<A,S> mirror()
Iso
around.default Lens.Simple<S,A> toLens()
default <U> Iso.Simple<S,A> discardR(Applicative<U,Iso<S,?,A,A>> appB)
Applicative
and appB
, discarding appB's
result and
returning this Applicative
. This is generally useful for sequentially performing side-effects.discardR
in interface Applicative<S,Iso<S,?,A,A>>
discardR
in interface Iso<S,S,A,A>
discardR
in interface Monad<S,Iso<S,?,A,A>>
discardR
in interface MonadRec<S,Iso<S,?,A,A>>
U
- the type of appB's parameterappB
- the other Applicativedefault <B> Iso.Simple<S,B> andThen(Optic.Simple<? super Profunctor<?,?,?>,? super Functor<?,?>,A,B> f)
andThen
in interface Optic.Simple<Profunctor<?,?,?>,Functor<?,?>,S,A>
B
- the new left side and right side's functor embedding of the input profunctorf
- the other simple opticdefault <R> Iso.Simple<R,A> compose(Optic.Simple<? super Profunctor<?,?,?>,? super Functor<?,?>,R,S> g)
compose
in interface Optic.Simple<Profunctor<?,?,?>,Functor<?,?>,S,A>
R
- the new left side and right side's functor embedding of the output profunctorg
- the other simple opticstatic <S,A> Iso.Simple<S,A> adapt(Optic<? super Profunctor<?,?,?>,? super Functor<?,?>,S,S,A,A> optic)
Optic
with the right variance to an Iso.Simple
.S
- S/TA
- A/Boptic
- the optic