T - The type of values contained in the list.public final class ListBox<T> extends Object
ListBox.Instance| Modifier and Type | Class and Description |
|---|---|
static class |
ListBox.Instance
The
Traversable type class instance for ListBox. |
| Modifier and Type | Method and Description |
|---|---|
static <T> ListBox<T> |
create(List<T> value)
|
static <F extends K1,A> |
flip(Applicative F applicative,
List<F<A>> input)
Transforms a list of some container to a container of lists.
|
static <F extends K1,A,B> |
traverse(Applicative F applicative,
(A) -> F<B> function,
List<A> input)
Applies an operation
function to each element of input, then returns a container holding a
list of the outputs. |
public static <T> ListBox<T> create(List<T> value)
T - The type of values.value - The list of values.ListBox containing the same values as value.public static <F extends K1,A,B> F<List<B>> traverse(Applicative F applicative, (A) -> F<B> function, List<A> input)
function to each element of input, then returns a container holding a
list of the outputs.ListBox.F - The output container type.A - The type of the input elements.B - The type of the output elements.applicative - The Applicative instance that defines the behavior of F.function - The operation to apply to each element.input - The input elements.ListBox.Instance.traverse(Applicative, Function, App)public static <F extends K1,A> F<List<A>> flip(Applicative F applicative, List<F<A>> input)
F - The container type.A - The inner element type.applicative - The Applicative instance that defines the behavior of F.input - The list of container.Traversable.flip(Applicative, App)