Uses of Interface
org.eclipse.xtext.xbase.lib.Functions.Function2
Packages that use Functions.Function2
-
Uses of Functions.Function2 in org.eclipse.xtext.xbase.lib
Methods in org.eclipse.xtext.xbase.lib that return Functions.Function2Modifier and TypeMethodDescriptionstatic <V1,V2, T, R>
Functions.Function2<V1,V2, R> FunctionExtensions.andThen(Functions.Function2<? super V1, ? super V2, ? extends T> before, Functions.Function1<? super T, ? extends R> after) Returns a composed function that first applies thebeforefunction to its input, and then applies theafterfunction to the result.static <P1,P2, P3, RESULT>
Functions.Function2<P2,P3, RESULT> FunctionExtensions.curry(Functions.Function3<? super P1, ? super P2, ? super P3, ? extends RESULT> function, P1 argument) Curries a function that takes three arguments.Methods in org.eclipse.xtext.xbase.lib with parameters of type Functions.Function2Modifier and TypeMethodDescriptionstatic <V1,V2, T, R>
Functions.Function2<V1,V2, R> FunctionExtensions.andThen(Functions.Function2<? super V1, ? super V2, ? extends T> before, Functions.Function1<? super T, ? extends R> after) Returns a composed function that first applies thebeforefunction to its input, and then applies theafterfunction to the result.static <P1,P2, RESULT>
Functions.Function1<P2,RESULT> FunctionExtensions.curry(Functions.Function2<? super P1, ? super P2, ? extends RESULT> function, P1 argument) Curries a function that takes two arguments.static <K,V> Map<K, V> MapExtensions.filter(Map<K, V> original, Functions.Function2<? super K, ? super V, Boolean> predicate) Returns a filtered live view on top of the original map.static <T,R> R IterableExtensions.fold(Iterable<T> iterable, R seed, Functions.Function2<? super R, ? super T, ? extends R> function) Applies the combinatorfunctionto all elements of the iterable in turn and usesseedas the start value.static <T,R> R IteratorExtensions.fold(Iterator<T> iterator, R seed, Functions.Function2<? super R, ? super T, ? extends R> function) Applies the combinatorfunctionto all elements of the iterator in turn and usesseedas the start value.static <T> TIterableExtensions.reduce(Iterable<? extends T> iterable, Functions.Function2<? super T, ? super T, ? extends T> function) Applies the combinatorfunctionto all elements of the iterable in turn.static <T> TIteratorExtensions.reduce(Iterator<? extends T> iterator, Functions.Function2<? super T, ? super T, ? extends T> function) Applies the combinatorfunctionto all elements of the iterator in turn.