Uses of Interface
io.vavr.Function2
-
Packages that use Function2 Package Description io.vavr BesideAPIthe io.vavr package contains core types like (Checked)Functions and Tuples.io.vavr.control -
-
Uses of Function2 in io.vavr
Fields in io.vavr declared as Function2 Modifier and Type Field Description private Function2<? super T1,? super T2,Either<L,T3>>API.ForLazy3Either. ts3private Function2<? super T1,? super T2,Future<T3>>API.ForLazy3Future. ts3private Function2<? super T1,? super T2,List<T3>>API.ForLazy3List. ts3private Function2<? super T1,? super T2,Option<T3>>API.ForLazy3Option. ts3private Function2<? super T1,? super T2,Try<T3>>API.ForLazy3Try. ts3private Function2<? super T1,? super T2,Validation<L,T3>>API.ForLazy3Validation. ts3private Function2<? super T1,? super T2,Either<L,T3>>API.ForLazy4Either. ts3private Function2<? super T1,? super T2,Future<T3>>API.ForLazy4Future. ts3private Function2<? super T1,? super T2,List<T3>>API.ForLazy4List. ts3private Function2<? super T1,? super T2,Option<T3>>API.ForLazy4Option. ts3private Function2<? super T1,? super T2,Try<T3>>API.ForLazy4Try. ts3private Function2<? super T1,? super T2,Validation<L,T3>>API.ForLazy4Validation. ts3private Function2<? super T1,? super T2,Either<L,T3>>API.ForLazy5Either. ts3private Function2<? super T1,? super T2,Future<T3>>API.ForLazy5Future. ts3private Function2<? super T1,? super T2,List<T3>>API.ForLazy5List. ts3private Function2<? super T1,? super T2,Option<T3>>API.ForLazy5Option. ts3private Function2<? super T1,? super T2,Try<T3>>API.ForLazy5Try. ts3private Function2<? super T1,? super T2,Validation<L,T3>>API.ForLazy5Validation. ts3private Function2<? super T1,? super T2,Either<L,T3>>API.ForLazy6Either. ts3private Function2<? super T1,? super T2,Future<T3>>API.ForLazy6Future. ts3private Function2<? super T1,? super T2,List<T3>>API.ForLazy6List. ts3private Function2<? super T1,? super T2,Option<T3>>API.ForLazy6Option. ts3private Function2<? super T1,? super T2,Try<T3>>API.ForLazy6Try. ts3private Function2<? super T1,? super T2,Validation<L,T3>>API.ForLazy6Validation. ts3private Function2<? super T1,? super T2,Either<L,T3>>API.ForLazy7Either. ts3private Function2<? super T1,? super T2,Future<T3>>API.ForLazy7Future. ts3private Function2<? super T1,? super T2,List<T3>>API.ForLazy7List. ts3private Function2<? super T1,? super T2,Option<T3>>API.ForLazy7Option. ts3private Function2<? super T1,? super T2,Try<T3>>API.ForLazy7Try. ts3private Function2<? super T1,? super T2,Validation<L,T3>>API.ForLazy7Validation. ts3private Function2<? super T1,? super T2,Either<L,T3>>API.ForLazy8Either. ts3private Function2<? super T1,? super T2,Future<T3>>API.ForLazy8Future. ts3private Function2<? super T1,? super T2,List<T3>>API.ForLazy8List. ts3private Function2<? super T1,? super T2,Option<T3>>API.ForLazy8Option. ts3private Function2<? super T1,? super T2,Try<T3>>API.ForLazy8Try. ts3private Function2<? super T1,? super T2,Validation<L,T3>>API.ForLazy8Validation. ts3Methods in io.vavr that return Function2 Modifier and Type Method Description default <V> Function2<T1,T2,V>Function2. andThen(@NonNull java.util.function.Function<? super R,? extends V> after)Returns a composed function that first applies this Function2 to the given argument and then applies Functionafterto the result.default Function2<T2,T3,R>Function3. apply(T1 t1)Applies this function partially to one argument.default Function2<T3,T4,R>Function4. apply(T1 t1, T2 t2)Applies this function partially to two arguments.default Function2<T4,T5,R>Function5. apply(T1 t1, T2 t2, T3 t3)Applies this function partially to three arguments.default Function2<T5,T6,R>Function6. apply(T1 t1, T2 t2, T3 t3, T4 t4)Applies this function partially to 4 arguments.default Function2<T6,T7,R>Function7. apply(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5)Applies this function partially to 5 arguments.default Function2<T7,T8,R>Function8. apply(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6)Applies this function partially to 6 arguments.default <S> Function2<S,T2,R>Function2. compose1(@NonNull Function1<? super S,? extends T1> before)Returns a composed function that first applies the Functionbeforeto the 1st argument and then applies this Function2 to the result and the other argument.default <S> Function2<T1,S,R>Function2. compose2(@NonNull Function1<? super S,? extends T2> before)Returns a composed function that first applies the Functionbeforeto the 2nd argument and then applies this Function2 to the result and the other argument.static <T1,T2,R>
Function2<T1,T2,R>Function2. constant(R value)Returns a function that always returns the constant value that you give in parameter.static <T1,T2,R>
Function2<T1,T2,R>API. Function(Function2<T1,T2,R> methodReference)Alias forof(Function2)static <T1,T2,R>
Function2<T1,T2,Option<R>>CheckedFunction2. lift(@NonNull CheckedFunction2<? super T1,? super T2,? extends R> partialFunction)Lifts the givenpartialFunctioninto a total function that returns anOptionresult.static <T1,T2,R>
Function2<T1,T2,Option<R>>Function2. lift(@NonNull java.util.function.BiFunction<? super T1,? super T2,? extends R> partialFunction)Lifts the givenpartialFunctioninto a total function that returns anOptionresult.static <T1,T2,R>
Function2<T1,T2,Try<R>>CheckedFunction2. liftTry(@NonNull CheckedFunction2<? super T1,? super T2,? extends R> partialFunction)Lifts the givenpartialFunctioninto a total function that returns anTryresult.static <T1,T2,R>
Function2<T1,T2,Try<R>>Function2. liftTry(@NonNull java.util.function.BiFunction<? super T1,? super T2,? extends R> partialFunction)Lifts the givenpartialFunctioninto a total function that returns anTryresult.default Function2<T1,T2,R>Function2. memoized()Returns a memoizing version of this function, which computes the return value for given arguments only one time.static <T1,T2,R>
Function2<T1,T2,R>Function2. narrow(Function2<? super T1,? super T2,? extends R> f)Narrows the givenFunction2<? super T1, ? super T2, ? extends R>toFunction2<T1, T2, R>static <T1,T2,R>
Function2<T1,T2,R>Function2. of(@NonNull Function2<T1,T2,R> methodReference)default Function2<T1,T2,R>CheckedFunction2. recover(@NonNull java.util.function.Function<? super java.lang.Throwable,? extends java.util.function.BiFunction<? super T1,? super T2,? extends R>> recover)Return a composed function that first applies this CheckedFunction2 to the given arguments and in case of throwable try to get value fromrecoverfunction with same arguments and throwable information.default Function2<T2,T1,R>Function2. reversed()Returns a reversed version of this function.static <T1,T2,R>
Function2<T1,T2,R>API. unchecked(CheckedFunction2<T1,T2,R> f)Alias forCheckedFunction2.unchecked()default Function2<T1,T2,R>CheckedFunction2. unchecked()Returns an unchecked function that will sneaky throw if an exceptions occurs when applying the function.Methods in io.vavr with parameters of type Function2 Modifier and Type Method Description static <T1,T2,T3>
API.ForLazy3List<T1,T2,T3>API. For(@NonNull List<T1> ts1, @NonNull Function1<? super T1,List<T2>> ts2, @NonNull Function2<? super T1,? super T2,List<T3>> ts3)Creates a lazyFor-comprehension over three Lists.static <T1,T2,T3,T4>
API.ForLazy4List<T1,T2,T3,T4>API. For(@NonNull List<T1> ts1, @NonNull Function1<? super T1,List<T2>> ts2, @NonNull Function2<? super T1,? super T2,List<T3>> ts3, @NonNull Function3<? super T1,? super T2,? super T3,List<T4>> ts4)Creates a lazyFor-comprehension over 4 Lists.static <T1,T2,T3,T4,T5>
API.ForLazy5List<T1,T2,T3,T4,T5>API. For(@NonNull List<T1> ts1, @NonNull Function1<? super T1,List<T2>> ts2, @NonNull Function2<? super T1,? super T2,List<T3>> ts3, @NonNull Function3<? super T1,? super T2,? super T3,List<T4>> ts4, @NonNull Function4<? super T1,? super T2,? super T3,? super T4,List<T5>> ts5)Creates a lazyFor-comprehension over 5 Lists.static <T1,T2,T3,T4,T5,T6>
API.ForLazy6List<T1,T2,T3,T4,T5,T6>API. For(@NonNull List<T1> ts1, @NonNull Function1<? super T1,List<T2>> ts2, @NonNull Function2<? super T1,? super T2,List<T3>> ts3, @NonNull Function3<? super T1,? super T2,? super T3,List<T4>> ts4, @NonNull Function4<? super T1,? super T2,? super T3,? super T4,List<T5>> ts5, @NonNull Function5<? super T1,? super T2,? super T3,? super T4,? super T5,List<T6>> ts6)Creates a lazyFor-comprehension over 6 Lists.static <T1,T2,T3,T4,T5,T6,T7>
API.ForLazy7List<T1,T2,T3,T4,T5,T6,T7>API. For(@NonNull List<T1> ts1, @NonNull Function1<? super T1,List<T2>> ts2, @NonNull Function2<? super T1,? super T2,List<T3>> ts3, @NonNull Function3<? super T1,? super T2,? super T3,List<T4>> ts4, @NonNull Function4<? super T1,? super T2,? super T3,? super T4,List<T5>> ts5, @NonNull Function5<? super T1,? super T2,? super T3,? super T4,? super T5,List<T6>> ts6, @NonNull Function6<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,List<T7>> ts7)Creates a lazyFor-comprehension over 7 Lists.static <T1,T2,T3,T4,T5,T6,T7,T8>
API.ForLazy8List<T1,T2,T3,T4,T5,T6,T7,T8>API. For(@NonNull List<T1> ts1, @NonNull Function1<? super T1,List<T2>> ts2, @NonNull Function2<? super T1,? super T2,List<T3>> ts3, @NonNull Function3<? super T1,? super T2,? super T3,List<T4>> ts4, @NonNull Function4<? super T1,? super T2,? super T3,? super T4,List<T5>> ts5, @NonNull Function5<? super T1,? super T2,? super T3,? super T4,? super T5,List<T6>> ts6, @NonNull Function6<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,List<T7>> ts7, @NonNull Function7<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,? super T7,List<T8>> ts8)Creates a lazyFor-comprehension over 8 Lists.static <T1,T2,T3>
API.ForLazy3Future<T1,T2,T3>API. For(@NonNull Future<T1> ts1, @NonNull Function1<? super T1,Future<T2>> ts2, @NonNull Function2<? super T1,? super T2,Future<T3>> ts3)Creates a lazyFor-comprehension over three Futures.static <T1,T2,T3,T4>
API.ForLazy4Future<T1,T2,T3,T4>API. For(@NonNull Future<T1> ts1, @NonNull Function1<? super T1,Future<T2>> ts2, @NonNull Function2<? super T1,? super T2,Future<T3>> ts3, @NonNull Function3<? super T1,? super T2,? super T3,Future<T4>> ts4)Creates a lazyFor-comprehension over 4 Futures.static <T1,T2,T3,T4,T5>
API.ForLazy5Future<T1,T2,T3,T4,T5>API. For(@NonNull Future<T1> ts1, @NonNull Function1<? super T1,Future<T2>> ts2, @NonNull Function2<? super T1,? super T2,Future<T3>> ts3, @NonNull Function3<? super T1,? super T2,? super T3,Future<T4>> ts4, @NonNull Function4<? super T1,? super T2,? super T3,? super T4,Future<T5>> ts5)Creates a lazyFor-comprehension over 5 Futures.static <T1,T2,T3,T4,T5,T6>
API.ForLazy6Future<T1,T2,T3,T4,T5,T6>API. For(@NonNull Future<T1> ts1, @NonNull Function1<? super T1,Future<T2>> ts2, @NonNull Function2<? super T1,? super T2,Future<T3>> ts3, @NonNull Function3<? super T1,? super T2,? super T3,Future<T4>> ts4, @NonNull Function4<? super T1,? super T2,? super T3,? super T4,Future<T5>> ts5, @NonNull Function5<? super T1,? super T2,? super T3,? super T4,? super T5,Future<T6>> ts6)Creates a lazyFor-comprehension over 6 Futures.static <T1,T2,T3,T4,T5,T6,T7>
API.ForLazy7Future<T1,T2,T3,T4,T5,T6,T7>API. For(@NonNull Future<T1> ts1, @NonNull Function1<? super T1,Future<T2>> ts2, @NonNull Function2<? super T1,? super T2,Future<T3>> ts3, @NonNull Function3<? super T1,? super T2,? super T3,Future<T4>> ts4, @NonNull Function4<? super T1,? super T2,? super T3,? super T4,Future<T5>> ts5, @NonNull Function5<? super T1,? super T2,? super T3,? super T4,? super T5,Future<T6>> ts6, @NonNull Function6<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,Future<T7>> ts7)Creates a lazyFor-comprehension over 7 Futures.static <T1,T2,T3,T4,T5,T6,T7,T8>
API.ForLazy8Future<T1,T2,T3,T4,T5,T6,T7,T8>API. For(@NonNull Future<T1> ts1, @NonNull Function1<? super T1,Future<T2>> ts2, @NonNull Function2<? super T1,? super T2,Future<T3>> ts3, @NonNull Function3<? super T1,? super T2,? super T3,Future<T4>> ts4, @NonNull Function4<? super T1,? super T2,? super T3,? super T4,Future<T5>> ts5, @NonNull Function5<? super T1,? super T2,? super T3,? super T4,? super T5,Future<T6>> ts6, @NonNull Function6<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,Future<T7>> ts7, @NonNull Function7<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,? super T7,Future<T8>> ts8)Creates a lazyFor-comprehension over 8 Futures.static <L,T1,T2,T3>
API.ForLazy3Either<L,T1,T2,T3>API. For(@NonNull Either<L,T1> ts1, @NonNull Function1<? super T1,Either<L,T2>> ts2, @NonNull Function2<? super T1,? super T2,Either<L,T3>> ts3)Creates a lazyFor-comprehension over three Eithers.static <L,T1,T2,T3,T4>
API.ForLazy4Either<L,T1,T2,T3,T4>API. For(@NonNull Either<L,T1> ts1, @NonNull Function1<? super T1,Either<L,T2>> ts2, @NonNull Function2<? super T1,? super T2,Either<L,T3>> ts3, @NonNull Function3<? super T1,? super T2,? super T3,Either<L,T4>> ts4)Creates a lazyFor-comprehension over 4 Eithers.static <L,T1,T2,T3,T4,T5>
API.ForLazy5Either<L,T1,T2,T3,T4,T5>API. For(@NonNull Either<L,T1> ts1, @NonNull Function1<? super T1,Either<L,T2>> ts2, @NonNull Function2<? super T1,? super T2,Either<L,T3>> ts3, @NonNull Function3<? super T1,? super T2,? super T3,Either<L,T4>> ts4, @NonNull Function4<? super T1,? super T2,? super T3,? super T4,Either<L,T5>> ts5)Creates a lazyFor-comprehension over 5 Eithers.static <L,T1,T2,T3,T4,T5,T6>
API.ForLazy6Either<L,T1,T2,T3,T4,T5,T6>API. For(@NonNull Either<L,T1> ts1, @NonNull Function1<? super T1,Either<L,T2>> ts2, @NonNull Function2<? super T1,? super T2,Either<L,T3>> ts3, @NonNull Function3<? super T1,? super T2,? super T3,Either<L,T4>> ts4, @NonNull Function4<? super T1,? super T2,? super T3,? super T4,Either<L,T5>> ts5, @NonNull Function5<? super T1,? super T2,? super T3,? super T4,? super T5,Either<L,T6>> ts6)Creates a lazyFor-comprehension over 6 Eithers.static <L,T1,T2,T3,T4,T5,T6,T7>
API.ForLazy7Either<L,T1,T2,T3,T4,T5,T6,T7>API. For(@NonNull Either<L,T1> ts1, @NonNull Function1<? super T1,Either<L,T2>> ts2, @NonNull Function2<? super T1,? super T2,Either<L,T3>> ts3, @NonNull Function3<? super T1,? super T2,? super T3,Either<L,T4>> ts4, @NonNull Function4<? super T1,? super T2,? super T3,? super T4,Either<L,T5>> ts5, @NonNull Function5<? super T1,? super T2,? super T3,? super T4,? super T5,Either<L,T6>> ts6, @NonNull Function6<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,Either<L,T7>> ts7)Creates a lazyFor-comprehension over 7 Eithers.static <L,T1,T2,T3,T4,T5,T6,T7,T8>
API.ForLazy8Either<L,T1,T2,T3,T4,T5,T6,T7,T8>API. For(@NonNull Either<L,T1> ts1, @NonNull Function1<? super T1,Either<L,T2>> ts2, @NonNull Function2<? super T1,? super T2,Either<L,T3>> ts3, @NonNull Function3<? super T1,? super T2,? super T3,Either<L,T4>> ts4, @NonNull Function4<? super T1,? super T2,? super T3,? super T4,Either<L,T5>> ts5, @NonNull Function5<? super T1,? super T2,? super T3,? super T4,? super T5,Either<L,T6>> ts6, @NonNull Function6<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,Either<L,T7>> ts7, @NonNull Function7<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,? super T7,Either<L,T8>> ts8)Creates a lazyFor-comprehension over 8 Eithers.static <T1,T2,T3>
API.ForLazy3Option<T1,T2,T3>API. For(@NonNull Option<T1> ts1, @NonNull Function1<? super T1,Option<T2>> ts2, @NonNull Function2<? super T1,? super T2,Option<T3>> ts3)Creates a lazyFor-comprehension over three Options.static <T1,T2,T3,T4>
API.ForLazy4Option<T1,T2,T3,T4>API. For(@NonNull Option<T1> ts1, @NonNull Function1<? super T1,Option<T2>> ts2, @NonNull Function2<? super T1,? super T2,Option<T3>> ts3, @NonNull Function3<? super T1,? super T2,? super T3,Option<T4>> ts4)Creates a lazyFor-comprehension over 4 Options.static <T1,T2,T3,T4,T5>
API.ForLazy5Option<T1,T2,T3,T4,T5>API. For(@NonNull Option<T1> ts1, @NonNull Function1<? super T1,Option<T2>> ts2, @NonNull Function2<? super T1,? super T2,Option<T3>> ts3, @NonNull Function3<? super T1,? super T2,? super T3,Option<T4>> ts4, @NonNull Function4<? super T1,? super T2,? super T3,? super T4,Option<T5>> ts5)Creates a lazyFor-comprehension over 5 Options.static <T1,T2,T3,T4,T5,T6>
API.ForLazy6Option<T1,T2,T3,T4,T5,T6>API. For(@NonNull Option<T1> ts1, @NonNull Function1<? super T1,Option<T2>> ts2, @NonNull Function2<? super T1,? super T2,Option<T3>> ts3, @NonNull Function3<? super T1,? super T2,? super T3,Option<T4>> ts4, @NonNull Function4<? super T1,? super T2,? super T3,? super T4,Option<T5>> ts5, @NonNull Function5<? super T1,? super T2,? super T3,? super T4,? super T5,Option<T6>> ts6)Creates a lazyFor-comprehension over 6 Options.static <T1,T2,T3,T4,T5,T6,T7>
API.ForLazy7Option<T1,T2,T3,T4,T5,T6,T7>API. For(@NonNull Option<T1> ts1, @NonNull Function1<? super T1,Option<T2>> ts2, @NonNull Function2<? super T1,? super T2,Option<T3>> ts3, @NonNull Function3<? super T1,? super T2,? super T3,Option<T4>> ts4, @NonNull Function4<? super T1,? super T2,? super T3,? super T4,Option<T5>> ts5, @NonNull Function5<? super T1,? super T2,? super T3,? super T4,? super T5,Option<T6>> ts6, @NonNull Function6<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,Option<T7>> ts7)Creates a lazyFor-comprehension over 7 Options.static <T1,T2,T3,T4,T5,T6,T7,T8>
API.ForLazy8Option<T1,T2,T3,T4,T5,T6,T7,T8>API. For(@NonNull Option<T1> ts1, @NonNull Function1<? super T1,Option<T2>> ts2, @NonNull Function2<? super T1,? super T2,Option<T3>> ts3, @NonNull Function3<? super T1,? super T2,? super T3,Option<T4>> ts4, @NonNull Function4<? super T1,? super T2,? super T3,? super T4,Option<T5>> ts5, @NonNull Function5<? super T1,? super T2,? super T3,? super T4,? super T5,Option<T6>> ts6, @NonNull Function6<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,Option<T7>> ts7, @NonNull Function7<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,? super T7,Option<T8>> ts8)Creates a lazyFor-comprehension over 8 Options.static <T1,T2,T3>
API.ForLazy3Try<T1,T2,T3>API. For(@NonNull Try<T1> ts1, @NonNull Function1<? super T1,Try<T2>> ts2, @NonNull Function2<? super T1,? super T2,Try<T3>> ts3)Creates a lazyFor-comprehension over three Trys.static <T1,T2,T3,T4>
API.ForLazy4Try<T1,T2,T3,T4>API. For(@NonNull Try<T1> ts1, @NonNull Function1<? super T1,Try<T2>> ts2, @NonNull Function2<? super T1,? super T2,Try<T3>> ts3, @NonNull Function3<? super T1,? super T2,? super T3,Try<T4>> ts4)Creates a lazyFor-comprehension over 4 Trys.static <T1,T2,T3,T4,T5>
API.ForLazy5Try<T1,T2,T3,T4,T5>API. For(@NonNull Try<T1> ts1, @NonNull Function1<? super T1,Try<T2>> ts2, @NonNull Function2<? super T1,? super T2,Try<T3>> ts3, @NonNull Function3<? super T1,? super T2,? super T3,Try<T4>> ts4, @NonNull Function4<? super T1,? super T2,? super T3,? super T4,Try<T5>> ts5)Creates a lazyFor-comprehension over 5 Trys.static <T1,T2,T3,T4,T5,T6>
API.ForLazy6Try<T1,T2,T3,T4,T5,T6>API. For(@NonNull Try<T1> ts1, @NonNull Function1<? super T1,Try<T2>> ts2, @NonNull Function2<? super T1,? super T2,Try<T3>> ts3, @NonNull Function3<? super T1,? super T2,? super T3,Try<T4>> ts4, @NonNull Function4<? super T1,? super T2,? super T3,? super T4,Try<T5>> ts5, @NonNull Function5<? super T1,? super T2,? super T3,? super T4,? super T5,Try<T6>> ts6)Creates a lazyFor-comprehension over 6 Trys.static <T1,T2,T3,T4,T5,T6,T7>
API.ForLazy7Try<T1,T2,T3,T4,T5,T6,T7>API. For(@NonNull Try<T1> ts1, @NonNull Function1<? super T1,Try<T2>> ts2, @NonNull Function2<? super T1,? super T2,Try<T3>> ts3, @NonNull Function3<? super T1,? super T2,? super T3,Try<T4>> ts4, @NonNull Function4<? super T1,? super T2,? super T3,? super T4,Try<T5>> ts5, @NonNull Function5<? super T1,? super T2,? super T3,? super T4,? super T5,Try<T6>> ts6, @NonNull Function6<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,Try<T7>> ts7)Creates a lazyFor-comprehension over 7 Trys.static <T1,T2,T3,T4,T5,T6,T7,T8>
API.ForLazy8Try<T1,T2,T3,T4,T5,T6,T7,T8>API. For(@NonNull Try<T1> ts1, @NonNull Function1<? super T1,Try<T2>> ts2, @NonNull Function2<? super T1,? super T2,Try<T3>> ts3, @NonNull Function3<? super T1,? super T2,? super T3,Try<T4>> ts4, @NonNull Function4<? super T1,? super T2,? super T3,? super T4,Try<T5>> ts5, @NonNull Function5<? super T1,? super T2,? super T3,? super T4,? super T5,Try<T6>> ts6, @NonNull Function6<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,Try<T7>> ts7, @NonNull Function7<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,? super T7,Try<T8>> ts8)Creates a lazyFor-comprehension over 8 Trys.static <L,T1,T2,T3>
API.ForLazy3Validation<L,T1,T2,T3>API. For(@NonNull Validation<L,T1> ts1, @NonNull Function1<? super T1,Validation<L,T2>> ts2, @NonNull Function2<? super T1,? super T2,Validation<L,T3>> ts3)Creates a lazyFor-comprehension over three Validations.static <L,T1,T2,T3,T4>
API.ForLazy4Validation<L,T1,T2,T3,T4>API. For(@NonNull Validation<L,T1> ts1, @NonNull Function1<? super T1,Validation<L,T2>> ts2, @NonNull Function2<? super T1,? super T2,Validation<L,T3>> ts3, @NonNull Function3<? super T1,? super T2,? super T3,Validation<L,T4>> ts4)Creates a lazyFor-comprehension over 4 Validations.static <L,T1,T2,T3,T4,T5>
API.ForLazy5Validation<L,T1,T2,T3,T4,T5>API. For(@NonNull Validation<L,T1> ts1, @NonNull Function1<? super T1,Validation<L,T2>> ts2, @NonNull Function2<? super T1,? super T2,Validation<L,T3>> ts3, @NonNull Function3<? super T1,? super T2,? super T3,Validation<L,T4>> ts4, @NonNull Function4<? super T1,? super T2,? super T3,? super T4,Validation<L,T5>> ts5)Creates a lazyFor-comprehension over 5 Validations.static <L,T1,T2,T3,T4,T5,T6>
API.ForLazy6Validation<L,T1,T2,T3,T4,T5,T6>API. For(@NonNull Validation<L,T1> ts1, @NonNull Function1<? super T1,Validation<L,T2>> ts2, @NonNull Function2<? super T1,? super T2,Validation<L,T3>> ts3, @NonNull Function3<? super T1,? super T2,? super T3,Validation<L,T4>> ts4, @NonNull Function4<? super T1,? super T2,? super T3,? super T4,Validation<L,T5>> ts5, @NonNull Function5<? super T1,? super T2,? super T3,? super T4,? super T5,Validation<L,T6>> ts6)Creates a lazyFor-comprehension over 6 Validations.static <L,T1,T2,T3,T4,T5,T6,T7>
API.ForLazy7Validation<L,T1,T2,T3,T4,T5,T6,T7>API. For(@NonNull Validation<L,T1> ts1, @NonNull Function1<? super T1,Validation<L,T2>> ts2, @NonNull Function2<? super T1,? super T2,Validation<L,T3>> ts3, @NonNull Function3<? super T1,? super T2,? super T3,Validation<L,T4>> ts4, @NonNull Function4<? super T1,? super T2,? super T3,? super T4,Validation<L,T5>> ts5, @NonNull Function5<? super T1,? super T2,? super T3,? super T4,? super T5,Validation<L,T6>> ts6, @NonNull Function6<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,Validation<L,T7>> ts7)Creates a lazyFor-comprehension over 7 Validations.static <L,T1,T2,T3,T4,T5,T6,T7,T8>
API.ForLazy8Validation<L,T1,T2,T3,T4,T5,T6,T7,T8>API. For(@NonNull Validation<L,T1> ts1, @NonNull Function1<? super T1,Validation<L,T2>> ts2, @NonNull Function2<? super T1,? super T2,Validation<L,T3>> ts3, @NonNull Function3<? super T1,? super T2,? super T3,Validation<L,T4>> ts4, @NonNull Function4<? super T1,? super T2,? super T3,? super T4,Validation<L,T5>> ts5, @NonNull Function5<? super T1,? super T2,? super T3,? super T4,? super T5,Validation<L,T6>> ts6, @NonNull Function6<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,Validation<L,T7>> ts7, @NonNull Function7<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,? super T7,Validation<L,T8>> ts8)Creates a lazyFor-comprehension over 8 Validations.static <T1,T2,R>
Function2<T1,T2,R>API. Function(Function2<T1,T2,R> methodReference)Alias forof(Function2)static <T1,T2,R>
Function2<T1,T2,R>Function2. narrow(Function2<? super T1,? super T2,? extends R> f)Narrows the givenFunction2<? super T1, ? super T2, ? extends R>toFunction2<T1, T2, R>static <T1,T2,R>
Function2<T1,T2,R>Function2. of(@NonNull Function2<T1,T2,R> methodReference)Constructors in io.vavr with parameters of type Function2 Constructor Description ForLazy3Either(Either<L,T1> ts1, Function1<? super T1,Either<L,T2>> ts2, Function2<? super T1,? super T2,Either<L,T3>> ts3)ForLazy3Future(Future<T1> ts1, Function1<? super T1,Future<T2>> ts2, Function2<? super T1,? super T2,Future<T3>> ts3)ForLazy3List(List<T1> ts1, Function1<? super T1,List<T2>> ts2, Function2<? super T1,? super T2,List<T3>> ts3)ForLazy3Option(Option<T1> ts1, Function1<? super T1,Option<T2>> ts2, Function2<? super T1,? super T2,Option<T3>> ts3)ForLazy3Try(Try<T1> ts1, Function1<? super T1,Try<T2>> ts2, Function2<? super T1,? super T2,Try<T3>> ts3)ForLazy3Validation(Validation<L,T1> ts1, Function1<? super T1,Validation<L,T2>> ts2, Function2<? super T1,? super T2,Validation<L,T3>> ts3)ForLazy4Either(Either<L,T1> ts1, Function1<? super T1,Either<L,T2>> ts2, Function2<? super T1,? super T2,Either<L,T3>> ts3, Function3<? super T1,? super T2,? super T3,Either<L,T4>> ts4)ForLazy4Future(Future<T1> ts1, Function1<? super T1,Future<T2>> ts2, Function2<? super T1,? super T2,Future<T3>> ts3, Function3<? super T1,? super T2,? super T3,Future<T4>> ts4)ForLazy4List(List<T1> ts1, Function1<? super T1,List<T2>> ts2, Function2<? super T1,? super T2,List<T3>> ts3, Function3<? super T1,? super T2,? super T3,List<T4>> ts4)ForLazy4Option(Option<T1> ts1, Function1<? super T1,Option<T2>> ts2, Function2<? super T1,? super T2,Option<T3>> ts3, Function3<? super T1,? super T2,? super T3,Option<T4>> ts4)ForLazy4Try(Try<T1> ts1, Function1<? super T1,Try<T2>> ts2, Function2<? super T1,? super T2,Try<T3>> ts3, Function3<? super T1,? super T2,? super T3,Try<T4>> ts4)ForLazy4Validation(Validation<L,T1> ts1, Function1<? super T1,Validation<L,T2>> ts2, Function2<? super T1,? super T2,Validation<L,T3>> ts3, Function3<? super T1,? super T2,? super T3,Validation<L,T4>> ts4)ForLazy5Either(Either<L,T1> ts1, Function1<? super T1,Either<L,T2>> ts2, Function2<? super T1,? super T2,Either<L,T3>> ts3, Function3<? super T1,? super T2,? super T3,Either<L,T4>> ts4, Function4<? super T1,? super T2,? super T3,? super T4,Either<L,T5>> ts5)ForLazy5Future(Future<T1> ts1, Function1<? super T1,Future<T2>> ts2, Function2<? super T1,? super T2,Future<T3>> ts3, Function3<? super T1,? super T2,? super T3,Future<T4>> ts4, Function4<? super T1,? super T2,? super T3,? super T4,Future<T5>> ts5)ForLazy5List(List<T1> ts1, Function1<? super T1,List<T2>> ts2, Function2<? super T1,? super T2,List<T3>> ts3, Function3<? super T1,? super T2,? super T3,List<T4>> ts4, Function4<? super T1,? super T2,? super T3,? super T4,List<T5>> ts5)ForLazy5Option(Option<T1> ts1, Function1<? super T1,Option<T2>> ts2, Function2<? super T1,? super T2,Option<T3>> ts3, Function3<? super T1,? super T2,? super T3,Option<T4>> ts4, Function4<? super T1,? super T2,? super T3,? super T4,Option<T5>> ts5)ForLazy5Try(Try<T1> ts1, Function1<? super T1,Try<T2>> ts2, Function2<? super T1,? super T2,Try<T3>> ts3, Function3<? super T1,? super T2,? super T3,Try<T4>> ts4, Function4<? super T1,? super T2,? super T3,? super T4,Try<T5>> ts5)ForLazy5Validation(Validation<L,T1> ts1, Function1<? super T1,Validation<L,T2>> ts2, Function2<? super T1,? super T2,Validation<L,T3>> ts3, Function3<? super T1,? super T2,? super T3,Validation<L,T4>> ts4, Function4<? super T1,? super T2,? super T3,? super T4,Validation<L,T5>> ts5)ForLazy6Either(Either<L,T1> ts1, Function1<? super T1,Either<L,T2>> ts2, Function2<? super T1,? super T2,Either<L,T3>> ts3, Function3<? super T1,? super T2,? super T3,Either<L,T4>> ts4, Function4<? super T1,? super T2,? super T3,? super T4,Either<L,T5>> ts5, Function5<? super T1,? super T2,? super T3,? super T4,? super T5,Either<L,T6>> ts6)ForLazy6Future(Future<T1> ts1, Function1<? super T1,Future<T2>> ts2, Function2<? super T1,? super T2,Future<T3>> ts3, Function3<? super T1,? super T2,? super T3,Future<T4>> ts4, Function4<? super T1,? super T2,? super T3,? super T4,Future<T5>> ts5, Function5<? super T1,? super T2,? super T3,? super T4,? super T5,Future<T6>> ts6)ForLazy6List(List<T1> ts1, Function1<? super T1,List<T2>> ts2, Function2<? super T1,? super T2,List<T3>> ts3, Function3<? super T1,? super T2,? super T3,List<T4>> ts4, Function4<? super T1,? super T2,? super T3,? super T4,List<T5>> ts5, Function5<? super T1,? super T2,? super T3,? super T4,? super T5,List<T6>> ts6)ForLazy6Option(Option<T1> ts1, Function1<? super T1,Option<T2>> ts2, Function2<? super T1,? super T2,Option<T3>> ts3, Function3<? super T1,? super T2,? super T3,Option<T4>> ts4, Function4<? super T1,? super T2,? super T3,? super T4,Option<T5>> ts5, Function5<? super T1,? super T2,? super T3,? super T4,? super T5,Option<T6>> ts6)ForLazy6Try(Try<T1> ts1, Function1<? super T1,Try<T2>> ts2, Function2<? super T1,? super T2,Try<T3>> ts3, Function3<? super T1,? super T2,? super T3,Try<T4>> ts4, Function4<? super T1,? super T2,? super T3,? super T4,Try<T5>> ts5, Function5<? super T1,? super T2,? super T3,? super T4,? super T5,Try<T6>> ts6)ForLazy6Validation(Validation<L,T1> ts1, Function1<? super T1,Validation<L,T2>> ts2, Function2<? super T1,? super T2,Validation<L,T3>> ts3, Function3<? super T1,? super T2,? super T3,Validation<L,T4>> ts4, Function4<? super T1,? super T2,? super T3,? super T4,Validation<L,T5>> ts5, Function5<? super T1,? super T2,? super T3,? super T4,? super T5,Validation<L,T6>> ts6)ForLazy7Either(Either<L,T1> ts1, Function1<? super T1,Either<L,T2>> ts2, Function2<? super T1,? super T2,Either<L,T3>> ts3, Function3<? super T1,? super T2,? super T3,Either<L,T4>> ts4, Function4<? super T1,? super T2,? super T3,? super T4,Either<L,T5>> ts5, Function5<? super T1,? super T2,? super T3,? super T4,? super T5,Either<L,T6>> ts6, Function6<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,Either<L,T7>> ts7)ForLazy7Future(Future<T1> ts1, Function1<? super T1,Future<T2>> ts2, Function2<? super T1,? super T2,Future<T3>> ts3, Function3<? super T1,? super T2,? super T3,Future<T4>> ts4, Function4<? super T1,? super T2,? super T3,? super T4,Future<T5>> ts5, Function5<? super T1,? super T2,? super T3,? super T4,? super T5,Future<T6>> ts6, Function6<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,Future<T7>> ts7)ForLazy7List(List<T1> ts1, Function1<? super T1,List<T2>> ts2, Function2<? super T1,? super T2,List<T3>> ts3, Function3<? super T1,? super T2,? super T3,List<T4>> ts4, Function4<? super T1,? super T2,? super T3,? super T4,List<T5>> ts5, Function5<? super T1,? super T2,? super T3,? super T4,? super T5,List<T6>> ts6, Function6<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,List<T7>> ts7)ForLazy7Option(Option<T1> ts1, Function1<? super T1,Option<T2>> ts2, Function2<? super T1,? super T2,Option<T3>> ts3, Function3<? super T1,? super T2,? super T3,Option<T4>> ts4, Function4<? super T1,? super T2,? super T3,? super T4,Option<T5>> ts5, Function5<? super T1,? super T2,? super T3,? super T4,? super T5,Option<T6>> ts6, Function6<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,Option<T7>> ts7)ForLazy7Try(Try<T1> ts1, Function1<? super T1,Try<T2>> ts2, Function2<? super T1,? super T2,Try<T3>> ts3, Function3<? super T1,? super T2,? super T3,Try<T4>> ts4, Function4<? super T1,? super T2,? super T3,? super T4,Try<T5>> ts5, Function5<? super T1,? super T2,? super T3,? super T4,? super T5,Try<T6>> ts6, Function6<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,Try<T7>> ts7)ForLazy7Validation(Validation<L,T1> ts1, Function1<? super T1,Validation<L,T2>> ts2, Function2<? super T1,? super T2,Validation<L,T3>> ts3, Function3<? super T1,? super T2,? super T3,Validation<L,T4>> ts4, Function4<? super T1,? super T2,? super T3,? super T4,Validation<L,T5>> ts5, Function5<? super T1,? super T2,? super T3,? super T4,? super T5,Validation<L,T6>> ts6, Function6<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,Validation<L,T7>> ts7)ForLazy8Either(Either<L,T1> ts1, Function1<? super T1,Either<L,T2>> ts2, Function2<? super T1,? super T2,Either<L,T3>> ts3, Function3<? super T1,? super T2,? super T3,Either<L,T4>> ts4, Function4<? super T1,? super T2,? super T3,? super T4,Either<L,T5>> ts5, Function5<? super T1,? super T2,? super T3,? super T4,? super T5,Either<L,T6>> ts6, Function6<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,Either<L,T7>> ts7, Function7<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,? super T7,Either<L,T8>> ts8)ForLazy8Future(Future<T1> ts1, Function1<? super T1,Future<T2>> ts2, Function2<? super T1,? super T2,Future<T3>> ts3, Function3<? super T1,? super T2,? super T3,Future<T4>> ts4, Function4<? super T1,? super T2,? super T3,? super T4,Future<T5>> ts5, Function5<? super T1,? super T2,? super T3,? super T4,? super T5,Future<T6>> ts6, Function6<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,Future<T7>> ts7, Function7<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,? super T7,Future<T8>> ts8)ForLazy8List(List<T1> ts1, Function1<? super T1,List<T2>> ts2, Function2<? super T1,? super T2,List<T3>> ts3, Function3<? super T1,? super T2,? super T3,List<T4>> ts4, Function4<? super T1,? super T2,? super T3,? super T4,List<T5>> ts5, Function5<? super T1,? super T2,? super T3,? super T4,? super T5,List<T6>> ts6, Function6<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,List<T7>> ts7, Function7<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,? super T7,List<T8>> ts8)ForLazy8Option(Option<T1> ts1, Function1<? super T1,Option<T2>> ts2, Function2<? super T1,? super T2,Option<T3>> ts3, Function3<? super T1,? super T2,? super T3,Option<T4>> ts4, Function4<? super T1,? super T2,? super T3,? super T4,Option<T5>> ts5, Function5<? super T1,? super T2,? super T3,? super T4,? super T5,Option<T6>> ts6, Function6<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,Option<T7>> ts7, Function7<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,? super T7,Option<T8>> ts8)ForLazy8Try(Try<T1> ts1, Function1<? super T1,Try<T2>> ts2, Function2<? super T1,? super T2,Try<T3>> ts3, Function3<? super T1,? super T2,? super T3,Try<T4>> ts4, Function4<? super T1,? super T2,? super T3,? super T4,Try<T5>> ts5, Function5<? super T1,? super T2,? super T3,? super T4,? super T5,Try<T6>> ts6, Function6<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,Try<T7>> ts7, Function7<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,? super T7,Try<T8>> ts8)ForLazy8Validation(Validation<L,T1> ts1, Function1<? super T1,Validation<L,T2>> ts2, Function2<? super T1,? super T2,Validation<L,T3>> ts3, Function3<? super T1,? super T2,? super T3,Validation<L,T4>> ts4, Function4<? super T1,? super T2,? super T3,? super T4,Validation<L,T5>> ts5, Function5<? super T1,? super T2,? super T3,? super T4,? super T5,Validation<L,T6>> ts6, Function6<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,Validation<L,T7>> ts7, Function7<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,? super T7,Validation<L,T8>> ts8) -
Uses of Function2 in io.vavr.control
Methods in io.vavr.control with parameters of type Function2 Modifier and Type Method Description <R> Validation<Seq<E>,R>Validation.Builder. ap(Function2<T1,T2,R> f)Applies a binary function to the values of the two validations held by this builder.
-