| Package | Description |
|---|---|
| org.eclipse.xtext.xbase.lib |
| Modifier and Type | Method and Description |
|---|---|
static <P1,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.
|
| Modifier and Type | Method and Description |
|---|---|
static <P1,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 combinator
function to all elements of the iterable in turn and uses seed as 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 combinator
function to all elements of the iterator in turn and uses seed as the
start value. |
static <T> T |
IterableExtensions.reduce(Iterable<? extends T> iterable,
Functions.Function2<? super T,? super T,? extends T> function)
Applies the combinator
function to all elements of the iterable in turn. |
static <T> T |
IteratorExtensions.reduce(Iterator<? extends T> iterator,
Functions.Function2<? super T,? super T,? extends T> function)
Applies the combinator
function to all elements of the iterator in turn. |
Copyright © 2015. All Rights Reserved.