Uses of Interface
com.github.tonivade.purefun.core.Function2
Packages that use Function2
Package
Description
-
Uses of Function2 in com.github.tonivade.purefun.concurrent
Methods in com.github.tonivade.purefun.concurrent with parameters of type Function2Modifier and TypeMethodDescriptionstatic <T,V, R> Future <R> Future.map2(Future<? extends T> fa, Future<? extends V> fb, Function2<? super T, ? super V, ? extends R> mapper) static <A,B, C> Promise <C> Promise.mapN(Promise<? extends A> fa, Promise<? extends B> fb, Function2<? super A, ? super B, ? extends C> mapper) -
Uses of Function2 in com.github.tonivade.purefun.core
Subinterfaces of Function2 in com.github.tonivade.purefun.coreMethods in com.github.tonivade.purefun.core that return Function2Modifier and TypeMethodDescriptionConsumer2.asFunction()static <A,B, R> Function2 <A, B, R> Function2.cons(R value) static <A,B> Function2 <A, B, A> Function2.first()PartialFunction2.lift()Function2.liftEither()Function2.liftOption()Function2.liftTry()Function2.memoized()static <A,B, R> Function2 <A, B, R> static <A,B> Function2 <A, B, B> Function2.second()static <A,B, R> Function2 <A, B, R> Methods in com.github.tonivade.purefun.core with parameters of type Function2Modifier and TypeMethodDescription<R> Applicable<F, R> <R> Rstatic <F extends Applicable<F,?>, A, B, R>
Applicable<F, R> Applicable.mapN(Applicable<F, ? extends A> fa, Applicable<F, ? extends B> fb, Function2<? super A, ? super B, ? extends R> mapper) static <A,B, R> Function2 <A, B, R> static <A,B, R> PartialFunction2 <A, B, R> PartialFunction2.of(Matcher2<? super A, ? super B> isDefined, Function2<? super A, ? super B, ? extends R> apply) default <B,R> Applicable <F, R> -
Uses of Function2 in com.github.tonivade.purefun.data
Methods in com.github.tonivade.purefun.data with parameters of type Function2 -
Uses of Function2 in com.github.tonivade.purefun.effect
Fields in com.github.tonivade.purefun.effect declared as Function2Methods in com.github.tonivade.purefun.effect with parameters of type Function2Modifier and TypeMethodDescriptionstatic <R,E, A> PureIO <R, E, A> PureIO.cancellable(Function2<R, Consumer1<? super Try<? extends Either<E, ? extends A>>>, PureIO<R, ?, Unit>> consumer) static <R,A> RIO <R, A> static <R,A> URIO <R, A> static <E,A, B, C>
EIO<E, C> EIO.parMap2(Kind<EIO<E, ?>, ? extends A> za, Kind<EIO<E, ?>, ? extends B> zb, Function2<? super A, ? super B, ? extends C> mapper) static <E,A, B, C>
EIO<E, C> EIO.parMap2(Executor executor, Kind<EIO<E, ?>, ? extends A> za, Kind<EIO<E, ?>, ? extends B> zb, Function2<? super A, ? super B, ? extends C> mapper) static <R,E, A, B, C>
PureIO<R, E, C> PureIO.parMap2(Kind<PureIO<R, E, ?>, ? extends A> za, Kind<PureIO<R, E, ?>, ? extends B> zb, Function2<? super A, ? super B, ? extends C> mapper) static <R,E, A, B, C>
PureIO<R, E, C> PureIO.parMap2(Executor executor, Kind<PureIO<R, E, ?>, ? extends A> za, Kind<PureIO<R, E, ?>, ? extends B> zb, Function2<? super A, ? super B, ? extends C> mapper) static <R,A, B, C>
RIO<R, C> RIO.parMap2(Kind<RIO<R, ?>, ? extends A> za, Kind<RIO<R, ?>, ? extends B> zb, Function2<? super A, ? super B, ? extends C> mapper) static <R,A, B, C>
RIO<R, C> RIO.parMap2(Executor executor, Kind<RIO<R, ?>, ? extends A> za, Kind<RIO<R, ?>, ? extends B> zb, Function2<? super A, ? super B, ? extends C> mapper) static <A,B, C> Task <C> Task.parMap2(Kind<Task<?>, ? extends A> za, Kind<Task<?>, ? extends B> zb, Function2<? super A, ? super B, ? extends C> mapper) static <A,B, C> Task <C> Task.parMap2(Executor executor, Kind<Task<?>, ? extends A> za, Kind<Task<?>, ? extends B> zb, Function2<? super A, ? super B, ? extends C> mapper) static <A,B, C> UIO <C> UIO.parMap2(Kind<UIO<?>, ? extends A> za, Kind<UIO<?>, ? extends B> zb, Function2<? super A, ? super B, ? extends C> mapper) static <A,B, C> UIO <C> UIO.parMap2(Executor executor, Kind<UIO<?>, ? extends A> za, Kind<UIO<?>, ? extends B> zb, Function2<? super A, ? super B, ? extends C> mapper) static <R,A, B, C>
URIO<R, C> URIO.parMap2(Kind<URIO<R, ?>, ? extends A> za, Kind<URIO<R, ?>, ? extends B> zb, Function2<? super A, ? super B, ? extends C> mapper) static <R,A, B, C>
URIO<R, C> URIO.parMap2(Executor executor, Kind<URIO<R, ?>, ? extends A> za, Kind<URIO<R, ?>, ? extends B> zb, Function2<? super A, ? super B, ? extends C> mapper) PureIO.zipWith(Kind<PureIO<R, E, ?>, ? extends B> other, Function2<? super A, ? super B, ? extends C> mapper) <B,C> Task <C> <B,C> UIO <C> Constructors in com.github.tonivade.purefun.effect with parameters of type Function2 -
Uses of Function2 in com.github.tonivade.purefun.instances
Methods in com.github.tonivade.purefun.instances with parameters of type Function2Modifier and TypeMethodDescriptiondefault <A,B> B ConstFoldable.foldLeft(Kind<Const<T, ?>, ? extends A> value, B initial, Function2<? super B, ? super A, ? extends B> mapper) default <A,B> B EitherFoldable.foldLeft(Kind<Either<L, ?>, ? extends A> value, B initial, Function2<? super B, ? super A, ? extends B> mapper) default <A,B> B IdFoldable.foldLeft(Kind<Id<?>, ? extends A> value, B initial, Function2<? super B, ? super A, ? extends B> mapper) default <A,B> B OptionFoldable.foldLeft(Kind<Option<?>, ? extends A> value, B initial, Function2<? super B, ? super A, ? extends B> mapper) default <A,B> B SequenceFoldable.foldLeft(Kind<Sequence<?>, ? extends A> value, B initial, Function2<? super B, ? super A, ? extends B> mapper) default <A,B> B TryFoldable.foldLeft(Kind<Try<?>, ? extends A> value, B initial, Function2<? super B, ? super A, ? extends B> mapper) default <A,B> Eval <B> ConstFoldable.foldRight(Kind<Const<T, ?>, ? extends A> value, Eval<? extends B> initial, Function2<? super A, ? super Eval<? extends B>, ? extends Eval<? extends B>> mapper) default <A,B> Eval <B> EitherFoldable.foldRight(Kind<Either<L, ?>, ? extends A> value, Eval<? extends B> initial, Function2<? super A, ? super Eval<? extends B>, ? extends Eval<? extends B>> mapper) default <A,B> Eval <B> IdFoldable.foldRight(Kind<Id<?>, ? extends A> value, Eval<? extends B> initial, Function2<? super A, ? super Eval<? extends B>, ? extends Eval<? extends B>> mapper) default <A,B> Eval <B> OptionFoldable.foldRight(Kind<Option<?>, ? extends A> value, Eval<? extends B> initial, Function2<? super A, ? super Eval<? extends B>, ? extends Eval<? extends B>> mapper) default <A,B> Eval <B> SequenceFoldable.foldRight(Kind<Sequence<?>, ? extends A> value, Eval<? extends B> initial, Function2<? super A, ? super Eval<? extends B>, ? extends Eval<? extends B>> mapper) default <A,B> Eval <B> TryFoldable.foldRight(Kind<Try<?>, ? extends A> value, Eval<? extends B> initial, Function2<? super A, ? super Eval<? extends B>, ? extends Eval<? extends B>> mapper) -
Uses of Function2 in com.github.tonivade.purefun.monad
Methods in com.github.tonivade.purefun.monad with parameters of type Function2Modifier and TypeMethodDescriptionstatic <S,A, B, C>
State<S, C> State.map2(State<S, ? extends A> sa, State<S, ? extends B> sb, Function2<? super A, ? super B, ? extends C> mapper) static <A,B, C> IO <C> IO.parMap2(Kind<IO<?>, ? extends A> fa, Kind<IO<?>, ? extends B> fb, Function2<? super A, ? super B, ? extends C> mapper) static <A,B, C> IO <C> IO.parMap2(Executor executor, Kind<IO<?>, ? extends A> fa, Kind<IO<?>, ? extends B> fb, Function2<? super A, ? super B, ? extends C> mapper) -
Uses of Function2 in com.github.tonivade.purefun.optics
Methods in com.github.tonivade.purefun.optics with parameters of type Function2 -
Uses of Function2 in com.github.tonivade.purefun.stream
Methods in com.github.tonivade.purefun.stream with parameters of type Function2Modifier and TypeMethodDescriptionCons.foldRight(Kind<F, ? extends R> begin, Function2<? super T, ? super Kind<F, ? extends R>, ? extends Kind<F, ? extends R>> combinator) Nil.foldRight(Kind<F, ? extends R> begin, Function2<? super T, ? super Kind<F, ? extends R>, ? extends Kind<F, ? extends R>> combinator) PureStream.foldRight(Kind<F, ? extends R> begin, Function2<? super T, ? super Kind<F, ? extends R>, ? extends Kind<F, ? extends R>> combinator) Suspend.foldRight(Kind<F, ? extends R> begin, Function2<? super T, ? super Kind<F, ? extends R>, ? extends Kind<F, ? extends R>> combinator) default <A,B, R> PureStream <F, R> PureStream.Of.zipWith(PureStream<F, ? extends A> s1, PureStream<F, ? extends B> s2, Function2<? super A, ? super B, ? extends R> combinator) static <F extends Kind<F,?>, A, B, R>
PureStream<F, R> PureStream.zipWith(PureStream<F, ? extends A> s1, PureStream<F, ? extends B> s2, Function2<? super A, ? super B, ? extends R> combinator, F... reified) -
Uses of Function2 in com.github.tonivade.purefun.transformer
Methods in com.github.tonivade.purefun.transformer with parameters of type Function2 -
Uses of Function2 in com.github.tonivade.purefun.type
Methods in com.github.tonivade.purefun.type with parameters of type Function2Modifier and TypeMethodDescriptionstatic <L,A, B, Z>
Either<L, Z> Either.map2(Either<L, ? extends A> eitherA, Either<L, ? extends B> eitherB, Function2<? super A, ? super B, ? extends Z> mapper) static <A,B, Z> Option <Z> Option.map2(Option<A> optionA, Option<B> optionB, Function2<? super A, ? super B, ? extends Z> mapper) static <A,B, Z> Try <Z> static <E,T1, T2, R>
Validation<Validation.Result<E>, R> Validation.mapN(Validation<E, T1> validation1, Validation<E, T2> validation2, Function2<? super T1, ? super T2, ? extends R> mapper) -
Uses of Function2 in com.github.tonivade.purefun.typeclasses
Methods in com.github.tonivade.purefun.typeclasses with parameters of type Function2Modifier and TypeMethodDescriptiondefault <A,B> B ComposedFoldable.foldLeft(Kind<Nested<F, G>, ? extends A> value, B initial, Function2<? super B, ? super A, ? extends B> mapper) <A,B> B Foldable.foldLeft(Kind<F, ? extends A> value, B initial, Function2<? super B, ? super A, ? extends B> mapper) Foldable.foldM(Monad<G> monad, Kind<F, ? extends A> value, B initial, Function2<? super B, ? super A, ? extends Kind<G, ? extends B>> mapper) Schedule.foldM(Z zero, Function2<? super Z, ? super B, ? extends Kind<F, Either<Unit, ? extends Z>>> next) ScheduleImpl.foldM(Z zero, Function2<? super Z, ? super B, ? extends Kind<F, Either<Unit, ? extends Z>>> next) default <A,B> Eval <B> ComposedFoldable.foldRight(Kind<Nested<F, G>, ? extends A> value, Eval<? extends B> initial, Function2<? super A, ? super Eval<? extends B>, ? extends Eval<? extends B>> mapper) <A,B> Eval <B> Foldable.foldRight(Kind<F, ? extends A> value, Eval<? extends B> initial, Function2<? super A, ? super Eval<? extends B>, ? extends Eval<? extends B>> mapper) Applicative.mapN(Kind<F, ? extends A> fa, Kind<F, ? extends B> fb, Function2<? super A, ? super B, ? extends R> mapper) Parallel.parMapN(Kind<F, ? extends A> fa, Kind<F, ? extends B> fb, Function2<? super A, ? super B, ? extends R> mapper) MonadError.repeat(Kind<F, A> value, ScheduleImpl<F, S, A, B> schedule, Function2<E, Option<B>, Kind<F, C>> orElse) MonadError.repeatOrElse(Kind<F, A> value, Schedule<F, A, B> schedule, Function2<E, Option<B>, Kind<F, B>> orElse) MonadError.repeatOrElseEither(Kind<F, A> value, Schedule<F, A, B> schedule, Function2<E, Option<B>, Kind<F, C>> orElse) MonadError.retryOrElseEither(Kind<F, A> value, Schedule<F, E, C> schedule, Function2<E, C, Kind<F, B>> orElse) MonadDefer.summarized(Kind<F, A> value, Kind<F, B> summary, Function2<? super B, ? super B, ? extends C> combinator)