| java.lang.Object xtc.util.Function
Function | public class Function (Code) | | Function definitions.
author: Laune Harris author: Robert Grimm version: $Revision: 1.5 $ |
Inner Class :public static interface F0 | |
Inner Class :public static interface F1 | |
Inner Class :public static interface F2 | |
Inner Class :public static interface F3 | |
Inner Class :public static interface F4 | |
Inner Class :public static interface F5 | |
Inner Class :public static interface F6 | |
Inner Class :public static interface F7 | |
Inner Class :public static interface F8 | |
Inner Class :public static interface F9 | |
Inner Class :public static interface F10 | |
Inner Class :public static interface F11 | |
Inner Class :public static interface F12 | |
Inner Class :public static interface F13 | |
Inner Class :public static interface F14 | |
Inner Class :public static interface F15 | |
Method Summary | |
public static U | foldl(Function.F2<U, ? super T, U> function, U seed, Pair<T> list) Fold the specified list with the specified function. | public static void | iterate(Function.F1<U, ? super T> function, Pair<T> list) Iterate the specified function over the specified list. | public static Pair<U> | map(Function.F1<U, ? super T> function, Pair<T> list) Map the specified function over the specified list. | public static boolean | matchesAll(Function.F1<Boolean, ? super T> pred, Pair<T> list) Determine whether the specified list contains only elements
matching the specified predicate.
Parameters: pred - The predicate. Parameters: list - The list. | public static boolean | matchesOne(Function.F1<Boolean, ? super T> pred, Pair<T> list) Determine whether the specified list contains an element matching
the specified predicate.
Parameters: pred - The predicate. Parameters: list - The list. |
foldl | public static U foldl(Function.F2<U, ? super T, U> function, U seed, Pair<T> list)(Code) | | Fold the specified list with the specified function. This method
successively applies the specified function to each of the list's
elements and a running result, which is initialized to the
specified seed.
Parameters: function - The function. Parameters: seed - The seed value. Parameters: list - The list. The folded value. |
iterate | public static void iterate(Function.F1<U, ? super T> function, Pair<T> list)(Code) | | Iterate the specified function over the specified list.
Parameters: function - The function. Parameters: list - The list. |
map | public static Pair<U> map(Function.F1<U, ? super T> function, Pair<T> list)(Code) | | Map the specified function over the specified list. Note that
the implementation does not recurse.
Parameters: function - The function. Parameters: list - The list. The result of mapping the function. |
matchesAll | public static boolean matchesAll(Function.F1<Boolean, ? super T> pred, Pair<T> list)(Code) | | Determine whether the specified list contains only elements
matching the specified predicate.
Parameters: pred - The predicate. Parameters: list - The list. true if the list contains only matchingelements. |
matchesOne | public static boolean matchesOne(Function.F1<Boolean, ? super T> pred, Pair<T> list)(Code) | | Determine whether the specified list contains an element matching
the specified predicate.
Parameters: pred - The predicate. Parameters: list - The list. true if the list contains at least onematching element. |
|
|