Uses of Class
fj.data.List
-
Packages that use List Package Description fj Types that set the premise for the existence of Functional Java.fj.control.parallel Parallelization strategies.fj.data Common algebraic data types.fj.data.hamt fj.data.optic Optic data types adapted from the Scala Monocle library and inspired by the Haskell Lens library.fj.function A prelude of commonly used first-class functionsfj.parser Parser combinators. -
-
Uses of List in fj
Methods in fj that return List Modifier and Type Method Description List<Class<? super T>>
Class. inheritance()
Returns the inheritance hierarchy of this class.List<Tree<java.lang.reflect.Type>>
Class. interfaceParameters()
Provides this class's interface type parameter information as a list of trees.<C> List<C>
P2. sequenceW(List<F<P2<A,B>,C>> fs)
Applies a list of comonadic functions to this product, returning a list of values.List<java.lang.Character>
Show. showl(A a)
Returns the display rendering of the given argument.<B> List<P1<B>>
P1. traverseList(F<A,List<B>> f)
Traversable instance of P1 for List<C> List<P2<A,C>>
P2. traverseList(F<B,List<C>> f)
Methods in fj that return types with arguments of type List Modifier and Type Method Description static <A> Equal<List<A>>
Equal. listEqual(Equal<A> ea)
An equal instance for theList
type.static <A> Hash<List<A>>
Hash. listHash(Hash<A> ha)
A hash instance for theList
type.default F<A,List<B>>
F. listK()
Promotes this function so that it returns its result in a List.default F2<List<A>,List<B>,List<C>>
F2. listM()
Promotes this function to a function on Lists.default F2<List<A>,List<B>,List<C>>
F2. listM()
Promotes this function to a function on Lists.default F2<List<A>,List<B>,List<C>>
F2. listM()
Promotes this function to a function on Lists.static <A> Monoid<List<A>>
Monoid. listMonoid()
A monoid for lists.static <A> Ord<List<A>>
Ord. listOrd(Ord<A> oa)
An order instance for theList
type.static <A> Semigroup<List<A>>
Semigroup. listSemigroup()
A semigroup for lists.static <A> Show<List<A>>
Show. listShow(Show<A> sa)
A show instance for theStream
type.default F<List<A>,List<B>>
F. mapList()
Promotes this function to map over a List.default F<List<A>,List<B>>
F. mapList()
Promotes this function to map over a List.static <A> P1<List<A>>
P1. sequence(List<P1<A>> as)
Turns a List of P1s into a single P1 of a List.static <A> F<List<P1<A>>,P1<List<A>>>
P1. sequenceList()
A first-class version of the sequence method for lists of P1s.static <A> F<List<P1<A>>,P1<List<A>>>
P1. sequenceList()
A first-class version of the sequence method for lists of P1s.F<List<A>,A>
Monoid. sumLeft()
Returns a function that sums the given values with left-fold.F<List<A>,A>
Monoid. sumRight()
Returns a function that sums the given values with right-fold.default F2<List<A>,List<B>,List<C>>
F2. zipListM()
Promotes this function to zip two lists, applying the function lock-step over both lists.default F2<List<A>,List<B>,List<C>>
F2. zipListM()
Promotes this function to zip two lists, applying the function lock-step over both lists.default F2<List<A>,List<B>,List<C>>
F2. zipListM()
Promotes this function to zip two lists, applying the function lock-step over both lists.Methods in fj with parameters of type List Modifier and Type Method Description static <A> P1<List<A>>
P1. sequence(List<P1<A>> as)
Turns a List of P1s into a single P1 of a List.<C> List<C>
P2. sequenceW(List<F<P2<A,B>,C>> fs)
Applies a list of comonadic functions to this product, returning a list of values.A
Monoid. sumLeft(List<A> as)
Sums the given values with left-fold.A
Monoid. sumRight(List<A> as)
Sums the given values with right-fold.Method parameters in fj with type arguments of type List Modifier and Type Method Description <B> List<P1<B>>
P1. traverseList(F<A,List<B>> f)
Traversable instance of P1 for List<C> List<P2<A,C>>
P2. traverseList(F<B,List<C>> f)
-
Uses of List in fj.control.parallel
Methods in fj.control.parallel that return List Modifier and Type Method Description static <A> List<P1<A>>
Strategy. mergeAll(List<java.util.concurrent.Future<A>> xs)
Waits for every Future in a list to obtain a value, and collects those values in a list.<B> List<A>
Strategy. parMap1(F<B,A> f, List<B> bs)
A strict version of parMap over lists.Methods in fj.control.parallel that return types with arguments of type List Modifier and Type Method Description static <A,B>
F<List<A>,Promise<B>>Promise. foldRight(Strategy<Unit> s, F<A,F<B,B>> f, B b)
Performs a right-fold reduction across a list in constant stack space.<A,B>
F<F<A,Promise<B>>,F<List<A>,Promise<List<B>>>>ParModule. mapList()
First-class function that maps a concurrent function over a List inside a promise.<A,B>
F<F<A,Promise<B>>,F<List<A>,Promise<List<B>>>>ParModule. mapList()
First-class function that maps a concurrent function over a List inside a promise.<A,B>
Promise<List<B>>ParModule. mapM(List<A> as, F<A,Promise<B>> f)
Takes a Promise-valued function and applies it to each element in the given List, yielding a promise of a List of results.<A,B>
Promise<List<B>>ParModule. parFlatMap(List<A> as, F<A,List<B>> f)
Binds a list-valued function across a list in parallel, concatenating the results into a new list.static <A,B>
P1<List<B>>Strategy. parFlatMap(Strategy<List<B>> s, F<A,List<B>> f, List<A> as)
Binds the given function in parallel across the given list, using the given strategy, with a final join.P1<List<A>>
Strategy. parList(List<P1<A>> ps)
Evaluates a list of product-1s in parallel.static <A> P1<List<A>>
Strategy. parListChunk(Strategy<List<A>> s, int chunkLength, List<P1<A>> as)
Sequentially evaluates chunks (sub-sequences) of a list in parallel.<A,B>
Promise<List<B>>ParModule. parMap(List<A> as, F<A,B> f)
Maps across a list in parallel.<B> P1<List<A>>
Strategy. parMap(F<B,A> f, List<B> bs)
Maps the given function over the given list in parallel using this strategy.<A,B>
F<F<A,B>,F<List<A>,Promise<List<B>>>>ParModule. parMapList()
A first-class function that maps another function across a list in parallel.<A,B>
F<F<A,B>,F<List<A>,Promise<List<B>>>>ParModule. parMapList()
A first-class function that maps another function across a list in parallel.<B> F<F<B,A>,F<List<B>,P1<List<A>>>>
Strategy. parMapList()
First-class version of parMap on lists.<B> F<F<B,A>,F<List<B>,P1<List<A>>>>
Strategy. parMapList()
First-class version of parMap on lists.<B> F<List<B>,P1<List<A>>>
Strategy. parMapList(F<B,A> f)
Promotes a function to a parallel function on lists using this strategy.<B> F<List<B>,P1<List<A>>>
Strategy. parMapList(F<B,A> f)
Promotes a function to a parallel function on lists using this strategy.<B> F<F<B,A>,F<List<B>,List<A>>>
Strategy. parMapList1()
First-class version of parMap1 on lists (parallel list functor).<B> F<F<B,A>,F<List<B>,List<A>>>
Strategy. parMapList1()
First-class version of parMap1 on lists (parallel list functor).<B,C>
F2<List<B>,List<C>,P1<List<A>>>Strategy. parZipListWith(F2<B,C,A> f)
Lifts a given function of arity-2 so that it zips together two lists in parallel, using this strategy, calling the function once for each corresponding pair in the lists, position-wise.<B,C>
F2<List<B>,List<C>,P1<List<A>>>Strategy. parZipListWith(F2<B,C,A> f)
Lifts a given function of arity-2 so that it zips together two lists in parallel, using this strategy, calling the function once for each corresponding pair in the lists, position-wise.<B,C>
F2<List<B>,List<C>,P1<List<A>>>Strategy. parZipListWith(F2<B,C,A> f)
Lifts a given function of arity-2 so that it zips together two lists in parallel, using this strategy, calling the function once for each corresponding pair in the lists, position-wise.<A,B,C>
Promise<List<C>>ParModule. parZipWith(List<A> as, List<B> bs, F<A,F<B,C>> f)
Zips two lists together with a given function, in parallel.<B,C>
P1<List<A>>Strategy. parZipWith(F2<B,C,A> f, List<B> bs, List<C> cs)
Zips together two lists in parallel using a given function, with this strategy.static <A> java.util.concurrent.Callable<List<A>>
Callables. sequence(List<java.util.concurrent.Callable<A>> as)
Turns a List of Callables into a single Callable of a List.<A> Promise<List<A>>
ParModule. sequence(List<Promise<A>> ps)
List iteration inside a Promise.static <A> F<List<Promise<A>>,Promise<List<A>>>
Promise. sequence(Strategy<Unit> s)
First-class version of the sequence function through a List.static <A> F<List<Promise<A>>,Promise<List<A>>>
Promise. sequence(Strategy<Unit> s)
First-class version of the sequence function through a List.static <A> Promise<List<A>>
Promise. sequence(Strategy<Unit> s, List<Promise<A>> as)
Turns a List of promises into a single promise of a List.static <A> F<List<java.util.concurrent.Callable<A>>,java.util.concurrent.Callable<List<A>>>
Callables. sequence_()
A first-class version of the sequence method.static <A> F<List<java.util.concurrent.Callable<A>>,java.util.concurrent.Callable<List<A>>>
Callables. sequence_()
A first-class version of the sequence method.<A> F<List<Promise<A>>,Promise<List<A>>>
ParModule. sequenceList()
A first-class function that traverses a list inside a promise.<A> F<List<Promise<A>>,Promise<List<A>>>
ParModule. sequenceList()
A first-class function that traverses a list inside a promise.static <A> F<List<Promise<A>>,Promise<List<A>>>
Promise. sequenceS(Strategy<Unit> s)
First-class version of the sequence function through a Stream.static <A> F<List<Promise<A>>,Promise<List<A>>>
Promise. sequenceS(Strategy<Unit> s)
First-class version of the sequence function through a Stream.Methods in fj.control.parallel with parameters of type List Modifier and Type Method Description <A,B>
Promise<List<B>>ParModule. mapM(List<A> as, F<A,Promise<B>> f)
Takes a Promise-valued function and applies it to each element in the given List, yielding a promise of a List of results.static <A> List<P1<A>>
Strategy. mergeAll(List<java.util.concurrent.Future<A>> xs)
Waits for every Future in a list to obtain a value, and collects those values in a list.<A,B>
Promise<List<B>>ParModule. parFlatMap(List<A> as, F<A,List<B>> f)
Binds a list-valued function across a list in parallel, concatenating the results into a new list.static <A,B>
P1<List<B>>Strategy. parFlatMap(Strategy<List<B>> s, F<A,List<B>> f, List<A> as)
Binds the given function in parallel across the given list, using the given strategy, with a final join.P1<List<A>>
Strategy. parList(List<P1<A>> ps)
Evaluates a list of product-1s in parallel.static <A> P1<List<A>>
Strategy. parListChunk(Strategy<List<A>> s, int chunkLength, List<P1<A>> as)
Sequentially evaluates chunks (sub-sequences) of a list in parallel.<A,B>
Promise<List<B>>ParModule. parMap(List<A> as, F<A,B> f)
Maps across a list in parallel.<B> P1<List<A>>
Strategy. parMap(F<B,A> f, List<B> bs)
Maps the given function over the given list in parallel using this strategy.<B> List<A>
Strategy. parMap1(F<B,A> f, List<B> bs)
A strict version of parMap over lists.<A,B,C>
Promise<List<C>>ParModule. parZipWith(List<A> as, List<B> bs, F<A,F<B,C>> f)
Zips two lists together with a given function, in parallel.<B,C>
P1<List<A>>Strategy. parZipWith(F2<B,C,A> f, List<B> bs, List<C> cs)
Zips together two lists in parallel using a given function, with this strategy.static <A> java.util.concurrent.Callable<List<A>>
Callables. sequence(List<java.util.concurrent.Callable<A>> as)
Turns a List of Callables into a single Callable of a List.<A> Promise<List<A>>
ParModule. sequence(List<Promise<A>> ps)
List iteration inside a Promise.static <A> Promise<List<A>>
Promise. sequence(Strategy<Unit> s, List<Promise<A>> as)
Turns a List of promises into a single promise of a List.Method parameters in fj.control.parallel with type arguments of type List Modifier and Type Method Description <A,B>
Promise<List<B>>ParModule. parFlatMap(List<A> as, F<A,List<B>> f)
Binds a list-valued function across a list in parallel, concatenating the results into a new list.static <A,B>
P1<List<B>>Strategy. parFlatMap(Strategy<List<B>> s, F<A,List<B>> f, List<A> as)
Binds the given function in parallel across the given list, using the given strategy, with a final join.static <A,B>
P1<List<B>>Strategy. parFlatMap(Strategy<List<B>> s, F<A,List<B>> f, List<A> as)
Binds the given function in parallel across the given list, using the given strategy, with a final join.static <A> P1<List<A>>
Strategy. parListChunk(Strategy<List<A>> s, int chunkLength, List<P1<A>> as)
Sequentially evaluates chunks (sub-sequences) of a list in parallel. -
Uses of List in fj.data
Subclasses of List in fj.data Modifier and Type Class Description private static class
List.Cons<A>
private static class
List.Nil<A>
Fields in fj.data declared as List Modifier and Type Field Description private List<A>
List.Buffer. start
private List<A>
List.Cons. tail
private List<A>
NonEmptyList. tail
Fields in fj.data with type parameters of type List Modifier and Type Field Description private F<List<A>,Trampoline<List<A>>>
DList. appendFn
private F<List<A>,Trampoline<List<A>>>
DList. appendFn
static F<java.util.BitSet,List<java.lang.Boolean>>
Java. BitSet_List
A function that converts bit sets to lists.static F<List<java.lang.Boolean>,java.util.BitSet>
Java. List_BitSet
A function that converts lists to bit sets.static F<List<java.lang.Character>,java.lang.String>
Conversions. List_String
A function that converts lists to strings.static F<List<java.lang.Character>,java.lang.StringBuffer>
Conversions. List_StringBuffer
A function that converts lists to string buffers.static F<List<java.lang.Character>,java.lang.StringBuilder>
Conversions. List_StringBuilder
A function that converts lists to string builders.static F<java.lang.String,List<java.lang.Character>>
Conversions. String_List
A function that converts strings to lists.static F<java.lang.StringBuffer,List<java.lang.Character>>
Conversions. StringBuffer_List
A function that converts string buffers to lists.static F<java.lang.StringBuilder,List<java.lang.Character>>
Conversions. StringBuilder_List
A function that converts string builders to lists.Methods in fj.data that return List Modifier and Type Method Description List<A>
List. append(List<A> as)
Appends the given list to this list.<B> List<B>
List. apply(List<F<A,B>> lf)
Performs function application within a list (applicative functor pattern).static <A> List<A>
List. arrayList(A... as)
Constructs a list from the given elements.<B,C,D,E,F$,G,H,I>
List<I>List. bind(List<B> lb, List<C> lc, List<D> ld, List<E> le, List<F$> lf, List<G> lg, List<H> lh, F<A,F<B,F<C,F<D,F<E,F<F$,F<G,F<H,I>>>>>>>> f)
Binds the given function across each element of this list and the given lists with a final join.<B,C,D,E,F$,G,H>
List<H>List. bind(List<B> lb, List<C> lc, List<D> ld, List<E> le, List<F$> lf, List<G> lg, F<A,F<B,F<C,F<D,F<E,F<F$,F<G,H>>>>>>> f)
Binds the given function across each element of this list and the given lists with a final join.<B,C,D,E,F$,G>
List<G>List. bind(List<B> lb, List<C> lc, List<D> ld, List<E> le, List<F$> lf, F<A,F<B,F<C,F<D,F<E,F<F$,G>>>>>> f)
Binds the given function across each element of this list and the given lists with a final join.<B,C,D,E,F$>
List<F$>List. bind(List<B> lb, List<C> lc, List<D> ld, List<E> le, F<A,F<B,F<C,F<D,F<E,F$>>>>> f)
Binds the given function across each element of this list and the given lists with a final join.<B,C,D,E>
List<E>List. bind(List<B> lb, List<C> lc, List<D> ld, F<A,F<B,F<C,F<D,E>>>> f)
Binds the given function across each element of this list and the given lists with a final join.<B,C,D>
List<D>List. bind(List<B> lb, List<C> lc, F<A,F<B,F<C,D>>> f)
Binds the given function across each element of this list and the given lists with a final join.<B,C>
List<C>List. bind(List<B> lb, F<A,F<B,C>> f)
Binds the given function across each element of this list and the given list with a final join.<B,C>
List<C>List. bind(List<B> lb, F2<A,B,C> f)
Binds the given function across each element of this list and the given list with a final join.<B> List<B>
List. bind(F<A,List<B>> f)
Binds the given function across each element of this list with a final join.static <A> List<A>
Java. Collection_List(java.util.Collection<A> c)
List<A>
List. cons(A a)
Prepends (cons) the given element to this list to product a new list.static <A> List<A>
List. cons(A head, List<A> tail)
Prepends the given head element to the given tail element to produce a new list.List<A>
List. conss(A a)
Prepends (cons) the given element to this list to product a new list.List<A>
List. delete(A a, Equal<A> e)
Removes the first element that equals the given object.List<A>
List. drop(int i)
Drops the given number of elements from the head of this list if they are available.List<A>
List. dropWhile(F<A,java.lang.Boolean> f)
Removes elements from the head of this list that do not match the given predicate function until an element is found that does match or the list is exhausted.static <A,E>
List<E>Validation. fails(List<Validation<E,?>> list)
List<A>
List. filter(F<A,java.lang.Boolean> f)
Filters elements from this list by returning only elements which producetrue
when the given function is applied to them.static <A> List<A>
List. fromIterator(java.util.Iterator<A> it)
Constructs a list from the given Iterator.static List<java.lang.Character>
List. fromString(java.lang.String s)
Returns a list of characters from the given string.List<List<A>>
List. group(Equal<A> e)
Groups elements according to the given equality implementation by longest sequence of equal elements.List<A>
List. init()
Returns all but the last element of this list.List<List<A>>
List. inits()
Returns the list of initial segments of this list, shortest first.List<A>
List. insertBy(F<A,F<A,Ordering>> f, A x)
Inserts the given element before the first element that is greater than or equal to it according to the given ordering.List<A>
List. intercalate(List<List<A>> as)
Intersperses this list through the given list then joins the results.List<A>
List. intersperse(A a)
Intersperses the given argument between each element of this list.static <A> List<A>
List. iterableList(java.lang.Iterable<A> i)
Takes the given iterable to a list.static <A> List<A>
List. iterateWhile(F<A,A> f, F<A,java.lang.Boolean> p, A a)
Creates a list where the first item is calculated by applying the function on the third argument, the second item by applying the function on the previous result and so on.static <A> List<A>
List. iteratorList(java.util.Iterator<A> it)
Constructs a list from the given Iterator.static <A> List<A>
Java. JavaList_List(java.util.List<A> list)
static <A> List<A>
Java8. JavaStream_List(java.util.stream.Stream<A> s)
static <A> List<A>
List. join(List<List<A>> o)
Joins the given list of lists using a bind operation.List<K>
HashMap. keys()
Returns all key entries in this hash map.List<K>
TreeMap. keys()
Returns all keys in this tree map.static <A,B>
List<A>Either. lefts(List<Either<A,B>> es)
Returns all the left values in the given list.static <A> List<A>
List. list(A... as)
Constructs a list from the given elements.<B> List<B>
List. map(F<A,B> f)
Maps the given function across this list.List<A>
List. minus(Equal<A> eq, List<A> xs)
Returns a new list of all the items in this list that do not appear in the given list.static <A> List<A>
List. nil()
Returns an empty list.List<A>
List. nub()
Removes duplicates according to object equality.List<A>
List. nub(Equal<A> eq)
Removes duplicates according to the given equality.List<A>
List. nub(Ord<A> o)
Removes duplicates according to the given ordering.List<A>
List. orTail(F0<List<A>> as)
Returns the tail of this list if there is one or the given argument if this list is empty.List<List<A>>
List. partition(int n)
Splits this list into lists of the given size.List<A>
List.Buffer. prependToList(List<A> as)
Prepends the elements of this buffer to the given list.static List<java.lang.Integer>
List. range(int from, int to)
Returns a list of integers from the givenfrom
value (inclusive) to the givento
value (exclusive).List<A>
List. removeAll(F<A,java.lang.Boolean> f)
Filters elements from this list by returning only elements which producefalse
when the given function is applied to them.static <A> List<A>
List. replicate(int n, A a)
Returns a list of the given value replicated the given number of times.List<A>
List. reverse()
Reverse this list in constant stack space.static <A,B>
List<B>Either. rights(List<Either<A,B>> es)
Returns all the right values in the given list.List<A>
DList. run()
Concatenates all the internal Lists together that are held in the DList's lambda's state to produce a List.<B> List<B>
List. sequence(List<B> bs)
Performs a bind across each list element, but ignores the element value each time.static <B> List<List<B>>
List. sequenceList(List<List<B>> list)
Sequence the given list and collect the output as an list.static <B> List<Option<B>>
Option. sequenceList(Option<List<B>> option)
Sequence the given option and collect the output as an list.static <B> List<Seq<B>>
Seq. sequenceList(Seq<List<B>> seq)
Sequence the given seq and collect the output as a list.static <B> List<Stream<B>>
Stream. sequenceList(Stream<List<B>> stream)
Sequence the given stream and collect the output as a list.static <E,C>
List<Validation<E,C>>Validation. sequenceList(Validation<E,List<C>> validation)
Sequence the given validation and collect the output as a list.static <A> List<A>
List. single(A a)
Returns a list of one element containing the given value.List<A>
List. snoc(A a)
Appends (snoc) the given element to this list to produce a new list.static <A> List<A>
Option. somes(List<Option<A>> as)
Returns all the values in the given list.List<A>
List. sort(Ord<A> o)
Sorts this list using the given order over elements using a merge sort algorithm.static <A,E>
List<A>Validation. successes(List<Validation<E,A>> list)
List<A>
List.Cons. tail()
List<A>
List.Nil. tail()
abstract List<A>
List. tail()
The list without the first element or fails for the empty list.List<A>
NonEmptyList. tail()
This list without the first element.List<List<A>>
List. tails()
Returns the list of final segments of this list, longest first.List<A>
List. take(int i)
Takes the given number of elements from the head of this list if they are available.List<A>
List. takeWhile(F<A,java.lang.Boolean> f)
Returns the first elements of the head of this list that match the given predicate function.List<A>
Array.ImmutableProjection. toList()
Returns a list projection of this array.List<A>
Array. toList()
Returns a list projection of this array.List<A>
Either.LeftProjection. toList()
Returns a single element list if this projection has a value, otherwise an empty list.List<B>
Either.RightProjection. toList()
Returns a single element list if this projection has a value, otherwise an empty list.List<A>
Either3.LeftProjection. toList()
List<B>
Either3.MiddleProjection. toList()
List<C>
Either3.RightProjection. toList()
List<P2<K,V>>
HashMap. toList()
List<A>
HashSet. toList()
Returns a list projection of this hash set.List<A>
List.Buffer. toList()
Returns an immutable list projection of this buffer.List<A>
NonEmptyList. toList()
Returns aList
projection of this list.List<A>
Option. toList()
Returns a list projection of this optional value.List<P2<K,A>>
PriorityQueue. toList()
Returns a list of products with priority k and value a.List<A>
Seq. toList()
Converts this sequence to a ListList<A>
Set. toList()
Returns a list representation of this set.List<A>
Stream. toList()
Returns a list projection of this stream.List<P2<K,V>>
TreeMap. toList()
List<E>
Validation.FailProjection. toList()
Returns a single element list if this is a failing value, otherwise an empty list.List<T>
Validation. toList()
Returns a single element list if this is a success value, otherwise an empty list.List<A>
Set. toListReverse()
Returns a list representation of this set in reverse order.List<P2<K,V>>
TreeMap. toListReverse()
List<P2<K,A>>
PriorityQueue. topN()
Returns all the elements of the queue with the highest (same) priority.<C> List<Either<C,B>>
Either.LeftProjection. traverseList(F<A,List<C>> f)
Traverse with function that produces List (non-determinism).<C> List<Either<A,C>>
Either.RightProjection. traverseList(F<B,List<C>> f)
Traverse with function that produces List (non-determinism).<B> List<List<B>>
List. traverseList(F<A,List<B>> f)
Traverse this list with the given function and collect the output as a list.<B> List<Option<B>>
Option. traverseList(F<A,List<B>> f)
Traverse this option with the given function and collect the output as a list.<B> List<Seq<B>>
Seq. traverseList(F<A,List<B>> f)
Traverse this seq with the given function and collect the output as a list.<B> List<Stream<B>>
Stream. traverseList(F<A,List<B>> f)
Traverse this stream with the given function and collect the output as a list.<C> List<Validation<E,C>>
Validation. traverseList(F<T,List<C>> f)
Traverse this validation with the given function and collect the output as a list.<X> List<Either3<X,B,C>>
Either3.LeftProjection. traverseList1(F<A,List<X>> f)
<X> List<Either3<A,X,C>>
Either3.MiddleProjection. traverseList1(F<B,List<X>> f)
<X> List<Either3<A,B,X>>
Either3.RightProjection. traverseList1(F<C,List<X>> f)
<C> List<Either<C,B>>
Either. traverseListLeft(F<A,List<C>> f)
Traversable instance of LeftProjection of Either for List.<C> List<Either<A,C>>
Either. traverseListRight(F<B,List<C>> f)
Traversable instance of RightProjection of Either for List.static <A,B>
List<A>List. unfold(F<B,Option<P2<A,B>>> f, B b)
Unfolds across the given function starting at the given value to produce a list.List<V>
HashMap. values()
Returns all values in this hash map.List<V>
TreeMap. values()
Returns all values in this tree map.<B> List<P2<A,B>>
List. zip(List<B> bs)
Zips this list with the given list to produce a list of pairs.List<P2<A,java.lang.Integer>>
List. zipIndex()
Zips this list with the index of its element as a pair.<B,C>
List<C>List. zipWith(List<B> bs, F<A,F<B,C>> f)
Zips this list with the given list using the given function to produce a new list.<B,C>
List<C>List. zipWith(List<B> bs, F2<A,B,C> f)
Zips this list with the given list using the given function to produce a new list.Methods in fj.data that return types with arguments of type List Modifier and Type Method Description Validation<List<E>,T>
Validation. accumulate()
<B,C,D,$E,$F,G,H,I>
Validation<List<E>,I>Validation. accumulate(Validation<E,B> v2, Validation<E,C> v3, Validation<E,D> v4, Validation<E,$E> v5, Validation<E,$F> v6, Validation<E,G> v7, Validation<E,H> v8, F8<T,B,C,D,$E,$F,G,H,I> f)
<B,C,D,$E,$F,G,H>
Validation<List<E>,H>Validation. accumulate(Validation<E,B> v2, Validation<E,C> v3, Validation<E,D> v4, Validation<E,$E> v5, Validation<E,$F> v6, Validation<E,G> v7, F7<T,B,C,D,$E,$F,G,H> f)
<B,C,D,$E,$F,G>
Validation<List<E>,G>Validation. accumulate(Validation<E,B> v2, Validation<E,C> v3, Validation<E,D> v4, Validation<E,$E> v5, Validation<E,$F> v6, F6<T,B,C,D,$E,$F,G> f)
<B,C,D,$E,$F>
Validation<List<E>,$F>Validation. accumulate(Validation<E,B> v2, Validation<E,C> v3, Validation<E,D> v4, Validation<E,$E> v5, F5<T,B,C,D,$E,$F> f)
<B,C,D,$E>
Validation<List<E>,$E>Validation. accumulate(Validation<E,B> v2, Validation<E,C> v3, Validation<E,D> v4, F4<T,B,C,D,$E> f)
<B,C,D>
Validation<List<E>,D>Validation. accumulate(Validation<E,B> v2, Validation<E,C> v3, F3<T,B,C,D> f)
<B,C>
Validation<List<E>,C>Validation. accumulate(Validation<E,B> v2, F2<T,B,C> f)
<B> Validation<List<E>,B>
Validation. accumulate(F<T,B> f)
static <A> F<Array<A>,List<A>>
Conversions. Array_List()
A function that converts arrays to lists.static <A> F<java.util.concurrent.ArrayBlockingQueue<A>,List<A>>
Java. ArrayBlockingQueue_List()
A function that converts array blocking queues to lists.static <A> F<java.util.ArrayList<A>,List<A>>
Java. ArrayList_List()
A function that converts array lists to lists.static F<List<java.lang.Character>,java.lang.String>
List. asString()
A first-classasString
.static <A,B>
F<F<A,List<B>>,F<List<A>,List<B>>>List. bind_()
Provides a first-class version of bind()static <A,B>
F<F<A,List<B>>,F<List<A>,List<B>>>List. bind_()
Provides a first-class version of bind()static <A,B>
F<F<A,List<B>>,F<List<A>,List<B>>>List. bind_()
Provides a first-class version of bind()P2<List<A>,List<A>>
List. breakk(F<A,java.lang.Boolean> p)
Returns a tuple where the first element is the longest prefix of this list that does not satisfy the given predicate and the second element is the remainder of the list.P2<List<A>,List<A>>
List. breakk(F<A,java.lang.Boolean> p)
Returns a tuple where the first element is the longest prefix of this list that does not satisfy the given predicate and the second element is the remainder of the list.static <A> F<java.util.Collection<A>,List<A>>
Java. Collection_List()
static <A> F<java.util.concurrent.ConcurrentLinkedQueue<A>,List<A>>
Java. ConcurrentLinkedQueue_List()
A function that converts concurrent linked queues to lists.static <A> F<A,F<List<A>,List<A>>>
List. cons()
Returns a function that prepends (cons) an element to a list to produce a new list.static <A> F<A,F<List<A>,List<A>>>
List. cons()
Returns a function that prepends (cons) an element to a list to produce a new list.static <A> F<A,List<A>>
List. cons(List<A> tail)
Returns a function that prepends a value to the given list.static <A> Prism<List<A>,P2<A,List<A>>>
List.Optic. cons()
Cons prismstatic <A> Prism<List<A>,P2<A,List<A>>>
List.Optic. cons()
Cons prismstatic <A> F2<A,List<A>,List<A>>
List. cons_()
static <A> F2<A,List<A>,List<A>>
List. cons_()
static <A> F<List<A>,List<A>>
List. cons_(A a)
Returns a function that prepends the given value to a list.static <A> F<List<A>,List<A>>
List. cons_(A a)
Returns a function that prepends the given value to a list.static <A> F<java.util.concurrent.CopyOnWriteArrayList<A>,List<A>>
Java. CopyOnWriteArrayList_List()
A function that converts copy on write array lists to lists.static <A> F<java.util.concurrent.CopyOnWriteArraySet<A>,List<A>>
Java. CopyOnWriteArraySet_List()
A function that converts copy on write array sets to lists.static <A extends java.util.concurrent.Delayed>
F<java.util.concurrent.DelayQueue<A>,List<A>>Java. DelayQueue_List()
A function that converts delay queues to lists.static <A,B>
F<Either<A,B>,List<A>>Conversions. Either_ListA()
A function that converts eithers to lists.static <A,B>
F<Either<A,B>,List<B>>Conversions. Either_ListB()
A function that converts eithers to lists.static <A extends java.lang.Enum<A>>
F<java.util.EnumSet<A>,List<A>>Java. EnumSet_List()
A function that converts enum sets to lists.static <A,B>
F<F<B,F<A,B>>,F<B,F<List<A>,B>>>List. foldLeft()
Provides a first-class version of foldLeft.static F<java.lang.String,List<java.lang.Character>>
List. fromString()
A first-classfromString
.List<List<A>>
List. group(Equal<A> e)
Groups elements according to the given equality implementation by longest sequence of equal elements.<B,C>
TreeMap<B,List<C>>List. groupBy(F<A,B> keyFunction, F<A,C> valueFunction, Ord<B> keyOrd)
Groups the elements of this list by a given keyFunction into aTreeMap
and transforms the matching elements with the given valueFunction.<B> TreeMap<B,List<A>>
List. groupBy(F<A,B> keyFunction, Ord<B> keyOrd)
Groups the elements of this list by a given keyFunction into aTreeMap
.static <A> F<java.util.HashSet<A>,List<A>>
Java. HashSet_List()
A function that converts hash sets to lists.static <A> Optional<List<A>,A>
List.Optic. head()
Optional targeted on Cons head.static <A> F<List<A>,A>
List. head_()
First-class head function.List<List<A>>
List. inits()
Returns the list of initial segments of this list, shortest first.static <A> F<List<A>,java.lang.Boolean>
List. isEmpty_()
Returns a function that determines whether a given list is empty.static <A> F<List<A>,java.lang.Boolean>
List. isNotEmpty_()
Returns a function that determines whether a given list is not empty.static <A> F<java.util.List<A>,List<A>>
Java. JavaList_List()
static <A> F<List<List<A>>,List<A>>
List. join()
A first-class version of joinstatic <A> F<List<List<A>>,List<A>>
List. join()
A first-class version of joinstatic <A> F<List<List<A>>,List<A>>
List. join()
A first-class version of joinstatic <A> F<List<A>,java.lang.Integer>
List. length_()
First-class length.static <A,B,C>
F<List<A>,F<List<B>,List<C>>>List. liftM2(F<A,F<B,C>> f)
Promotes the given function of arity-2 to a function on lists.static <A,B,C>
F<List<A>,F<List<B>,List<C>>>List. liftM2(F<A,F<B,C>> f)
Promotes the given function of arity-2 to a function on lists.static <A,B,C>
F<List<A>,F<List<B>,List<C>>>List. liftM2(F<A,F<B,C>> f)
Promotes the given function of arity-2 to a function on lists.static <A> F<java.util.concurrent.LinkedBlockingQueue<A>,List<A>>
Java. LinkedBlockingQueue_List()
A function that converts linked blocking queues to lists.static <A> F<java.util.LinkedHashSet<A>,List<A>>
Java. LinkedHashSet_List()
A function that converts linked hash sets to lists.static <A> F<java.util.LinkedList<A>,List<A>>
Java. LinkedList_List()
A function that converts linked lists to lists.static <E> Iteratee.IterV<E,List<E>>
Iteratee.IterV. list()
An iteratee that consumes the input elements and returns them as a list in reverse order, so that the last line is the first element.static <A> F<List<A>,Array<A>>
Conversions. List_Array()
A function that converts lists to arrays.static <A> F<List<A>,java.util.concurrent.ArrayBlockingQueue<A>>
Java. List_ArrayBlockingQueue(boolean fair)
A function that converts lists to array blocking queue.static <A> F<List<A>,java.util.ArrayList<A>>
Java. List_ArrayList()
A function that converts lists to array lists.static <A> F<List<A>,java.util.concurrent.ConcurrentLinkedQueue<A>>
Java. List_ConcurrentLinkedQueue()
A function that converts lists to concurrent linked queues.static <A> F<List<A>,java.util.concurrent.CopyOnWriteArrayList<A>>
Java. List_CopyOnWriteArrayList()
A function that converts lists to copy on write array lists.static <A> F<List<A>,java.util.concurrent.CopyOnWriteArraySet<A>>
Java. List_CopyOnWriteArraySet()
A function that converts lists to copy on write array sets.static <A extends java.util.concurrent.Delayed>
F<List<A>,java.util.concurrent.DelayQueue<A>>Java. List_DelayQueue()
A function that converts lists to delay queues.static <A,B>
F<P1<A>,F<List<B>,Either<A,B>>>Conversions. List_Either()
A function that converts lists to eithers.static <A extends java.lang.Enum<A>>
F<List<A>,java.util.EnumSet<A>>Java. List_EnumSet()
A function that converts lists to array enum sets.static <A> F<List<A>,java.util.HashSet<A>>
Java. List_HashSet()
A function that converts lists to hash sets.static <A> F<List<A>,java.util.concurrent.LinkedBlockingQueue<A>>
Java. List_LinkedBlockingQueue()
A function that converts lists to linked blocking queues.static <A> F<List<A>,java.util.LinkedHashSet<A>>
Java. List_LinkedHashSet()
A function that converts lists to linked hash sets.static <A> F<List<A>,java.util.LinkedList<A>>
Java. List_LinkedList()
A function that converts lists to linked lists.static <A> F<List<A>,Option<A>>
Conversions. List_Option()
A function that converts lists to options.static <A> F<List<A>,java.util.concurrent.PriorityBlockingQueue<A>>
Java. List_PriorityBlockingQueue()
A function that converts lists to priority blocking queues.static <A> F<List<A>,java.util.PriorityQueue<A>>
Java. List_PriorityQueue()
A function that converts lists to priority queues.static <A> F<List<A>,java.util.Stack<A>>
Java. List_Stack()
A function that converts lists to stacks.static <A> F<List<A>,Stream<A>>
Conversions. List_Stream()
A function that converts lists to streams.static <A> F<List<A>,java.util.concurrent.SynchronousQueue<A>>
Java. List_SynchronousQueue(boolean fair)
A function that converts lists to synchronous queues.static <A> F<List<A>,java.util.TreeSet<A>>
Java. List_TreeSet()
A function that converts lists to stacks.static <A> F<List<A>,java.util.Vector<A>>
Java. List_Vector()
A function that converts lists to vectors.static <A,B>
F2<List<P2<A,B>>,A,Option<B>>List. lookup(Equal<A> e)
Returns a partially applied version oflookup(Equal, List, Object)
.static <A,B>
F<F<A,B>,F<List<A>,List<B>>>List. map_()
Provides a first-class version of map()static <A,B>
F<F<A,B>,F<List<A>,List<B>>>List. map_()
Provides a first-class version of map()<B,C>
F<B,List<C>>List. mapM(F<A,F<B,C>> f)
Maps the given function of arity-2 across this list and returns a function that applies all the resulting functions to a given argument.<B> Option<List<B>>
List. mapMOption(F<A,Option<B>> f)
Maps the given function across this list by binding through the Option monad.<B> Trampoline<List<B>>
List. mapMTrampoline(F<A,Trampoline<B>> f)
Maps the given function across this list by binding through the Trampoline monad.static <A> Prism<List<A>,Unit>
List.Optic. nil()
Nil prismstatic <A> F<Option<A>,List<A>>
Conversions. Option_List()
A function that converts options to lists.List<List<A>>
List. partition(int n)
Splits this list into lists of the given size.P2<List<A>,List<A>>
List. partition(F<A,java.lang.Boolean> f)
Partitions the list into a tuple where the first element contains the items that satisfy the the predicate f and the second element contains the items that does not.P2<List<A>,List<A>>
List. partition(F<A,java.lang.Boolean> f)
Partitions the list into a tuple where the first element contains the items that satisfy the the predicate f and the second element contains the items that does not.static <A,B>
P2<List<A>,List<B>>Validation. partition(List<Validation<A,B>> list)
Partitions the list into the list of fails and the list of successesstatic <A,B>
P2<List<A>,List<B>>Validation. partition(List<Validation<A,B>> list)
Partitions the list into the list of fails and the list of successesstatic <A> F<java.util.concurrent.PriorityBlockingQueue<A>,List<A>>
Java. PriorityBlockingQueue_List()
A function that converts priority blocking queues to lists.static <A> F<java.util.PriorityQueue<A>,List<A>>
Java. PriorityQueue_List()
A function that converts priority queues to lists.static <A,B>
PTraversal<List<A>,List<B>,A,B>List.Optic. pTraversal()
Polymorphic traversalstatic <A,B>
PTraversal<List<A>,List<B>,A,B>List.Optic. pTraversal()
Polymorphic traversalstatic <A> IO<List<A>>
IOFunctions. replicateM(IO<A> ioa, int n)
static <A> IO<List<A>>
IOFunctions. sequence(List<IO<A>> list)
Evaluate each action in the sequence from left to right, and collect the results.static <A> Option<List<A>>
Option. sequence(List<Option<A>> a)
Sequence a list through the option monad.static <S,A>
State<S,List<A>>State. sequence(List<State<S,A>> list)
Evaluate each action in the sequence from left to right, and collect the results.static <E,A>
Validation<E,List<A>>Validation. sequence(Semigroup<E> s, List<Validation<E,A>> list)
If list contains a failure, returns a failure of the reduction of all the failures using the semigroup, otherwise returns the successful list.static <A,B>
F<B,List<A>>List. sequence_(List<F<B,A>> fs)
Turn a list of functions into a function returning a list.static <L,B>
Either<L,List<B>>List. sequenceEither(List<Either<L,B>> list)
Sequence the given list and collect the output on the right side of an either.static <R,B>
Either<List<B>,R>List. sequenceEitherLeft(List<Either<B,R>> list)
Sequence the given list and collect the output on the left side of an either.static <L,B>
Either<L,List<B>>List. sequenceEitherRight(List<Either<L,B>> list)
Sequence the given list and collect the output on the right side of an either.static <C,B>
F<C,List<B>>List. sequenceF(List<F<C,B>> list)
Sequence the given list and collect the output as a function.static <B> IO<List<B>>
List. sequenceIO(List<IO<B>> list)
Sequence the given list and collect the output as an IO.static <A,X>
Either<List<A>,X>Either. sequenceLeft(List<Either<A,X>> a)
Sequences through the left side of the either monad with a list of values.static <B> List<List<B>>
List. sequenceList(List<List<B>> list)
Sequence the given list and collect the output as an list.static <A,E>
Validation<List<E>,List<A>>Validation. sequenceNonCumulative(List<Validation<E,A>> list)
If the list contains a failure, returns a Validation of the list of fails in the list, otherwise returns a successful Validation with the list of successful values.static <A,E>
Validation<List<E>,List<A>>Validation. sequenceNonCumulative(List<Validation<E,A>> list)
If the list contains a failure, returns a Validation of the list of fails in the list, otherwise returns a successful Validation with the list of successful values.static <B> Option<List<B>>
List. sequenceOption(List<Option<B>> list)
Sequence the given list and collect the output as an list.static <B> P1<List<B>>
List. sequenceP1(List<P1<B>> list)
Sequence the given list and collect the output as a P1.static <B,X>
Either<X,List<B>>Either. sequenceRight(List<Either<X,B>> a)
Sequences through the right side of the either monad with a list of values.static <B> Seq<List<B>>
List. sequenceSeq(List<Seq<B>> list)
Sequence the given list and collect the output as a seq.static <B> Set<List<B>>
List. sequenceSet(Ord<B> ord, List<Set<B>> list)
Sequence the given list and collect the output as a set; use the given ord to order the set.static <B> Stream<List<B>>
List. sequenceStream(List<Stream<B>> list)
Sequence the given list and collect the output as a stream.static <B> Trampoline<List<B>>
List. sequenceTrampoline(List<Trampoline<B>> list)
Sequence the given list and collect the output as a trampoline.static <E,B>
Validation<E,List<B>>List. sequenceValidation(Semigroup<E> semigroup, List<Validation<E,B>> list)
Sequence the given list and collect the output as a validation; use the given semigroup to reduce the errors.P2<List<A>,List<A>>
List. span(F<A,java.lang.Boolean> p)
Returns a tuple where the first element is the longest prefix of this list that satisfies the given predicate and the second element is the remainder of the list.P2<List<A>,List<A>>
List. span(F<A,java.lang.Boolean> p)
Returns a tuple where the first element is the longest prefix of this list that satisfies the given predicate and the second element is the remainder of the list.P2<List<A>,List<A>>
List. splitAt(int i)
Splits this list into two lists at the given index.P2<List<A>,List<A>>
List. splitAt(int i)
Splits this list into two lists at the given index.static <A> F<java.util.Stack<A>,List<A>>
Java. Stack_List()
A function that converts stacks to lists.static <A> F<Stream<A>,List<A>>
Conversions. Stream_List()
A function that converts streams to lists.static <A> F<java.util.concurrent.SynchronousQueue<A>,List<A>>
Java. SynchronousQueue_List()
A function that converts synchronous queues to lists.static <A> Optional<List<A>,List<A>>
List.Optic. tail()
Optional targeted on Cons tail.static <A> Optional<List<A>,List<A>>
List.Optic. tail()
Optional targeted on Cons tail.static <A> F<List<A>,List<A>>
List. tail_()
First-class tail function.static <A> F<List<A>,List<A>>
List. tail_()
First-class tail function.Option<List<A>>
List. tailOption()
Reutrns the tail of the list, if any.List<List<A>>
List. tails()
Returns the list of final segments of this list, longest first.static <A> F<java.lang.Integer,F<List<A>,List<A>>>
List. take()
Provides a first-class version of take.static <A> F<java.lang.Integer,F<List<A>,List<A>>>
List. take()
Provides a first-class version of take.static <A> java.util.stream.Collector<A,List.Buffer<A>,List<A>>
Collectors. toList()
static <A> F<NonEmptyList<A>,List<A>>
NonEmptyList. toList_()
Returns a function that takes a non-empty list to a list.static <A> Traversal<List<A>,A>
List.Optic. traversal()
Monomorphic traversalstatic <S,A,B>
State<S,List<B>>State. traverse(List<A> list, F<A,State<S,B>> f)
Map each element of a structure to an action, evaluate these actions from left to right and collect the results.<B,E>
Either<E,List<B>>List. traverseEither(F<A,Either<E,B>> f)
Traverse through the List with given function.<R,B>
Either<List<B>,R>List. traverseEitherLeft(F<A,Either<B,R>> f)
Traverse this list with the given function and collect the output on the left side of an either.<L,B>
Either<L,List<B>>List. traverseEitherRight(F<A,Either<L,B>> f)
Traverse this list with the given function and collect the output on the right side of an either.<C,B>
F<C,List<B>>List. traverseF(F<A,F<C,B>> f)
Traverse this list with the given function and collect the output as a function.<B> IO<List<B>>
List. traverseIO(F<A,IO<B>> f)
Traverse this list with the given function and collect the output as an IO.<B> List<List<B>>
List. traverseList(F<A,List<B>> f)
Traverse this list with the given function and collect the output as a list.<B> Option<List<B>>
List. traverseOption(F<A,Option<B>> f)
Traverses through the List with the given function<B> P1<List<B>>
List. traverseP1(F<A,P1<B>> f)
Traverse this list with the given function and collect the output as a p1.<B> Promise<List<B>>
List. traversePromise(F<A,Promise<B>> f)
<B> Seq<List<B>>
List. traverseSeq(F<A,Seq<B>> f)
Traverse this list with the given function and collect the output as a seq.<B> Set<List<B>>
List. traverseSet(Ord<B> ord, F<A,Set<B>> f)
Traverse this list with the given function and collect the output as a set; use the given ord to order the set.<B> Stream<List<B>>
List. traverseStream(F<A,Stream<B>> f)
Traverse this list with the given function and collect the output as a stream.<B> Trampoline<List<B>>
List. traverseTrampoline(F<A,Trampoline<B>> f)
Traverse this list with the given function and collect the output as a trampoline.<B> V2<List<B>>
List. traverseV2(F<A,V2<B>> f)
<E,B>
Validation<E,List<B>>List. traverseValidation(Semigroup<E> s, F<A,Validation<E,B>> f)
Traverse this list with the given function and collect the output as a validation; use the given semigroup to reduce the errors.static <A> F<java.util.TreeSet<A>,List<A>>
Java. TreeSet_List()
A function that converts tree sets to lists.static <A,B>
P2<List<A>,List<B>>List. unzip(List<P2<A,B>> xs)
Transforms a list of pairs into a list of first components and a list of second components.static <A,B>
P2<List<A>,List<B>>List. unzip(List<P2<A,B>> xs)
Transforms a list of pairs into a list of first components and a list of second components.static <A> F<java.util.Vector<A>,List<A>>
Java. Vector_List()
A function that converts vectors to lists.static <A,B>
F<List<A>,F<List<B>,List<P2<A,B>>>>List. zip()
The first-class version of the zip function.static <A,B>
F<List<A>,F<List<B>,List<P2<A,B>>>>List. zip()
The first-class version of the zip function.static <A,B>
F<List<A>,F<List<B>,List<P2<A,B>>>>List. zip()
The first-class version of the zip function.static <A,B,C>
F<List<A>,F<List<B>,F<F<A,F<B,C>>,List<C>>>>List. zipWith()
Provides a first-class version of zipWithstatic <A,B,C>
F<List<A>,F<List<B>,F<F<A,F<B,C>>,List<C>>>>List. zipWith()
Provides a first-class version of zipWithstatic <A,B,C>
F<List<A>,F<List<B>,F<F<A,F<B,C>>,List<C>>>>List. zipWith()
Provides a first-class version of zipWithMethods in fj.data with parameters of type List Modifier and Type Method Description List<A>
List. append(List<A> as)
Appends the given list to this list.List.Buffer<A>
List.Buffer. append(List<A> as)
Appends the given list to this buffer.NonEmptyList<A>
NonEmptyList. append(List<A> as)
Appends the given list to this list.<B> List<B>
List. apply(List<F<A,B>> lf)
Performs function application within a list (applicative functor pattern).static java.lang.String
List. asString(List<java.lang.Character> cs)
Returns a string from the given list of characters.<B,C,D,E,F$,G,H,I>
List<I>List. bind(List<B> lb, List<C> lc, List<D> ld, List<E> le, List<F$> lf, List<G> lg, List<H> lh, F<A,F<B,F<C,F<D,F<E,F<F$,F<G,F<H,I>>>>>>>> f)
Binds the given function across each element of this list and the given lists with a final join.<B,C,D,E,F$,G,H>
List<H>List. bind(List<B> lb, List<C> lc, List<D> ld, List<E> le, List<F$> lf, List<G> lg, F<A,F<B,F<C,F<D,F<E,F<F$,F<G,H>>>>>>> f)
Binds the given function across each element of this list and the given lists with a final join.<B,C,D,E,F$,G>
List<G>List. bind(List<B> lb, List<C> lc, List<D> ld, List<E> le, List<F$> lf, F<A,F<B,F<C,F<D,F<E,F<F$,G>>>>>> f)
Binds the given function across each element of this list and the given lists with a final join.<B,C,D,E,F$>
List<F$>List. bind(List<B> lb, List<C> lc, List<D> ld, List<E> le, F<A,F<B,F<C,F<D,F<E,F$>>>>> f)
Binds the given function across each element of this list and the given lists with a final join.<B,C,D,E>
List<E>List. bind(List<B> lb, List<C> lc, List<D> ld, F<A,F<B,F<C,F<D,E>>>> f)
Binds the given function across each element of this list and the given lists with a final join.<B,C,D>
List<D>List. bind(List<B> lb, List<C> lc, F<A,F<B,F<C,D>>> f)
Binds the given function across each element of this list and the given lists with a final join.<B,C>
List<C>List. bind(List<B> lb, F<A,F<B,C>> f)
Binds the given function across each element of this list and the given list with a final join.<B,C>
List<C>List. bind(List<B> lb, F2<A,B,C> f)
Binds the given function across each element of this list and the given list with a final join.static <A> List<A>
List. cons(A head, List<A> tail)
Prepends the given head element to the given tail element to produce a new list.static <A> F<A,List<A>>
List. cons(List<A> tail)
Returns a function that prepends a value to the given list.PriorityQueue<K,A>
PriorityQueue. enqueue(List<P2<K,A>> list)
Adds nodes using the list of products with priority k and value a.static <A,E>
List<E>Validation. fails(List<Validation<E,?>> list)
static <A> List.Buffer<A>
List.Buffer. fromList(List<A> as)
Constructs a buffer from the given list.static <A> Option<NonEmptyList<A>>
NonEmptyList. fromList(List<A> as)
Returns a potential non-empty list from the given list.List<A>
List. intercalate(List<List<A>> as)
Intersperses this list through the given list then joins the results.boolean
List. isPrefixOf(Equal<A> eq, List<A> xs)
boolean
List. isSuffixOf(Equal<A> eq, List<A> xs)
static <A> List<A>
List. join(List<List<A>> o)
Joins the given list of lists using a bind operation.static <A,B>
List<A>Either. lefts(List<Either<A,B>> es)
Returns all the left values in the given list.static <A> java.util.stream.Stream<A>
Java8. List_JavaStream(List<A> list)
static <A> DList<A>
DList. listDList(List<A> a)
Creates a DList from a Liststatic <A> Seq<A>
Seq. listSeq(List<A> list)
Constructs a sequence from the given list.static <A,B>
Option<B>List. lookup(Equal<A> e, List<P2<A,B>> x, A a)
Returns an associated value with the given key in the list of pairs.List<A>
List. minus(Equal<A> eq, List<A> xs)
Returns a new list of all the items in this list that do not appear in the given list.static <A> NonEmptyList<A>
NonEmptyList. nel(A head, List<A> tail)
Return a non-empty list with the given head and tail.static <A> Tree<A>
Tree. node(A root, List<Tree<A>> forest)
Creates a new n-ary given a root and a subforest of length n.static <A,B>
P2<List<A>,List<B>>Validation. partition(List<Validation<A,B>> list)
Partitions the list into the list of fails and the list of successesList<A>
List.Buffer. prependToList(List<A> as)
Prepends the elements of this buffer to the given list.static Natural
Natural. product(List<Natural> ns)
Takes the product of a list of natural numbers.static <A,B>
List<B>Either. rights(List<Either<A,B>> es)
Returns all the right values in the given list.static <A> IO<List<A>>
IOFunctions. sequence(List<IO<A>> list)
Evaluate each action in the sequence from left to right, and collect the results.<B> List<B>
List. sequence(List<B> bs)
Performs a bind across each list element, but ignores the element value each time.static <A> Option<List<A>>
Option. sequence(List<Option<A>> a)
Sequence a list through the option monad.static <S,A>
State<S,List<A>>State. sequence(List<State<S,A>> list)
Evaluate each action in the sequence from left to right, and collect the results.static <E,A>
Validation<E,List<A>>Validation. sequence(Semigroup<E> s, List<Validation<E,A>> list)
If list contains a failure, returns a failure of the reduction of all the failures using the semigroup, otherwise returns the successful list.static <A,B>
F<B,List<A>>List. sequence_(List<F<B,A>> fs)
Turn a list of functions into a function returning a list.static <L,B>
Either<L,List<B>>List. sequenceEither(List<Either<L,B>> list)
Sequence the given list and collect the output on the right side of an either.static <R,B>
Either<List<B>,R>List. sequenceEitherLeft(List<Either<B,R>> list)
Sequence the given list and collect the output on the left side of an either.static <L,B>
Either<L,List<B>>List. sequenceEitherRight(List<Either<L,B>> list)
Sequence the given list and collect the output on the right side of an either.static <C,B>
F<C,List<B>>List. sequenceF(List<F<C,B>> list)
Sequence the given list and collect the output as a function.static <B> IO<List<B>>
List. sequenceIO(List<IO<B>> list)
Sequence the given list and collect the output as an IO.static <A,X>
Either<List<A>,X>Either. sequenceLeft(List<Either<A,X>> a)
Sequences through the left side of the either monad with a list of values.static <B> List<List<B>>
List. sequenceList(List<List<B>> list)
Sequence the given list and collect the output as an list.static <A,E>
Validation<List<E>,List<A>>Validation. sequenceNonCumulative(List<Validation<E,A>> list)
If the list contains a failure, returns a Validation of the list of fails in the list, otherwise returns a successful Validation with the list of successful values.static <B> Option<List<B>>
List. sequenceOption(List<Option<B>> list)
Sequence the given list and collect the output as an list.static <B> P1<List<B>>
List. sequenceP1(List<P1<B>> list)
Sequence the given list and collect the output as a P1.static <B,X>
Either<X,List<B>>Either. sequenceRight(List<Either<X,B>> a)
Sequences through the right side of the either monad with a list of values.static <B> Seq<List<B>>
List. sequenceSeq(List<Seq<B>> list)
Sequence the given list and collect the output as a seq.static <B> Set<List<B>>
List. sequenceSet(Ord<B> ord, List<Set<B>> list)
Sequence the given list and collect the output as a set; use the given ord to order the set.static <B> Stream<List<B>>
List. sequenceStream(List<Stream<B>> list)
Sequence the given list and collect the output as a stream.static <B> Trampoline<List<B>>
List. sequenceTrampoline(List<Trampoline<B>> list)
Sequence the given list and collect the output as a trampoline.static <E,B>
Validation<E,List<B>>List. sequenceValidation(Semigroup<E> semigroup, List<Validation<E,B>> list)
Sequence the given list and collect the output as a validation; use the given semigroup to reduce the errors.static <A> List<A>
Option. somes(List<Option<A>> as)
Returns all the values in the given list.static <A,E>
List<A>Validation. successes(List<Validation<E,A>> list)
static Natural
Natural. sum(List<Natural> ns)
Sums a list of natural numbers.private void
List.Cons. tail(List<A> tail)
static <S,A,B>
State<S,List<B>>State. traverse(List<A> list, F<A,State<S,B>> f)
Map each element of a structure to an action, evaluate these actions from left to right and collect the results.static <A,B>
P2<List<A>,List<B>>List. unzip(List<P2<A,B>> xs)
Transforms a list of pairs into a list of first components and a list of second components.<B> List<P2<A,B>>
List. zip(List<B> bs)
Zips this list with the given list to produce a list of pairs.<B,C>
List<C>List. zipWith(List<B> bs, F<A,F<B,C>> f)
Zips this list with the given list using the given function to produce a new list.<B,C>
List<C>List. zipWith(List<B> bs, F2<A,B,C> f)
Zips this list with the given list using the given function to produce a new list.<B,C>
NonEmptyList<C>NonEmptyList. zipWith(List<B> bs, F<A,F<B,C>> f)
Zips this non empty list with the given non empty list using the given function to produce a new list.<B,C>
NonEmptyList<C>NonEmptyList. zipWith(List<B> bs, F2<A,B,C> f)
Zips this non empty list with the given non empty list using the given function to produce a new list.Method parameters in fj.data with type arguments of type List Modifier and Type Method Description <B> List<B>
List. bind(F<A,List<B>> f)
Binds the given function across each element of this list with a final join.static <A> DList<A>
DList. dlist(F<List<A>,Trampoline<List<A>>> f)
Creates a DList from the function For alternatives functions to create a DList:static <A> DList<A>
DList. dlist(F<List<A>,Trampoline<List<A>>> f)
Creates a DList from the function For alternatives functions to create a DList:List<A>
List. intercalate(List<List<A>> as)
Intersperses this list through the given list then joins the results.static <A> List<A>
List. join(List<List<A>> o)
Joins the given list of lists using a bind operation.List<A>
List. orTail(F0<List<A>> as)
Returns the tail of this list if there is one or the given argument if this list is empty.static <B> List<List<B>>
List. sequenceList(List<List<B>> list)
Sequence the given list and collect the output as an list.static <B> List<Option<B>>
Option. sequenceList(Option<List<B>> option)
Sequence the given option and collect the output as an list.static <B> List<Seq<B>>
Seq. sequenceList(Seq<List<B>> seq)
Sequence the given seq and collect the output as a list.static <B> List<Stream<B>>
Stream. sequenceList(Stream<List<B>> stream)
Sequence the given stream and collect the output as a list.static <E,C>
List<Validation<E,C>>Validation. sequenceList(Validation<E,List<C>> validation)
Sequence the given validation and collect the output as a list.<C> List<Either<C,B>>
Either.LeftProjection. traverseList(F<A,List<C>> f)
Traverse with function that produces List (non-determinism).<C> List<Either<A,C>>
Either.RightProjection. traverseList(F<B,List<C>> f)
Traverse with function that produces List (non-determinism).<B> List<List<B>>
List. traverseList(F<A,List<B>> f)
Traverse this list with the given function and collect the output as a list.<B> List<Option<B>>
Option. traverseList(F<A,List<B>> f)
Traverse this option with the given function and collect the output as a list.<B> List<Seq<B>>
Seq. traverseList(F<A,List<B>> f)
Traverse this seq with the given function and collect the output as a list.<B> List<Stream<B>>
Stream. traverseList(F<A,List<B>> f)
Traverse this stream with the given function and collect the output as a list.<C> List<Validation<E,C>>
Validation. traverseList(F<T,List<C>> f)
Traverse this validation with the given function and collect the output as a list.<X> List<Either3<X,B,C>>
Either3.LeftProjection. traverseList1(F<A,List<X>> f)
<X> List<Either3<A,X,C>>
Either3.MiddleProjection. traverseList1(F<B,List<X>> f)
<X> List<Either3<A,B,X>>
Either3.RightProjection. traverseList1(F<C,List<X>> f)
<C> List<Either<C,B>>
Either. traverseListLeft(F<A,List<C>> f)
Traversable instance of LeftProjection of Either for List.<C> List<Either<A,C>>
Either. traverseListRight(F<B,List<C>> f)
Traversable instance of RightProjection of Either for List.<B> B
List. uncons(F2<A,List<A>,B> cons, B nil)
Constructors in fj.data with parameters of type List Constructor Description Cons(A head, List<A> tail)
NonEmptyList(A head, List<A> tail)
Constructor parameters in fj.data with type arguments of type List Constructor Description DList(F<List<A>,Trampoline<List<A>>> appendFn)
DList(F<List<A>,Trampoline<List<A>>> appendFn)
-
Uses of List in fj.data.hamt
Methods in fj.data.hamt that return List Modifier and Type Method Description List<java.lang.Boolean>
BitSet. toList()
List<P2<K,V>>
HashArrayMappedTrie. toList()
Returns a list of key-value pairs.List<P2<K,V>>
HashArrayMappedTrie. toList(Ord<K> o)
Returns the list of key-value pairs, ordered by key.Methods in fj.data.hamt with parameters of type List Modifier and Type Method Description static BitSet
BitSet. listBitSet(List<java.lang.Boolean> list)
HashArrayMappedTrie<K,V>
HashArrayMappedTrie. set(List<P2<K,V>> list)
Adds the product of key-value (k, v) pairs to the trie. -
Uses of List in fj.data.optic
Methods in fj.data.optic that return List Modifier and Type Method Description List<A>
Fold. getAll(S s)
get all the targets of aFold
TODO: Shall it return a Stream as there might be an infinite number of targets?List<A>
PTraversal. getAll(S s)
get all the targets of aPTraversal
Methods in fj.data.optic that return types with arguments of type List Modifier and Type Method Description F<S,List<S>>
Lens. modifyListF(F<A,List<A>> f)
F<S,List<S>>
Optional. modifyListF(F<A,List<A>> f)
F<S,List<T>>
PIso. modifyListF(F<A,List<B>> f)
modify polymorphically the target of aPIso
with an Applicative functionabstract F<S,List<T>>
PLens. modifyListF(F<A,List<B>> f)
modify polymorphically the target of aPLens
with an Applicative functionabstract F<S,List<T>>
POptional. modifyListF(F<A,List<B>> f)
modify polymorphically the target of aPOptional
with an Applicative functionF<S,List<T>>
PPrism. modifyListF(F<A,List<B>> f)
modify polymorphically the target of aPPrism
with an Applicative functionabstract F<S,List<T>>
PTraversal. modifyListF(F<A,List<B>> f)
modify polymorphically the target of aPTraversal
with an Applicative functionF<S,List<S>>
Traversal. modifyListF(F<A,List<A>> f)
Method parameters in fj.data.optic with type arguments of type List Modifier and Type Method Description F<S,List<S>>
Lens. modifyListF(F<A,List<A>> f)
F<S,List<S>>
Optional. modifyListF(F<A,List<A>> f)
F<S,List<T>>
PIso. modifyListF(F<A,List<B>> f)
modify polymorphically the target of aPIso
with an Applicative functionabstract F<S,List<T>>
PLens. modifyListF(F<A,List<B>> f)
modify polymorphically the target of aPLens
with an Applicative functionabstract F<S,List<T>>
POptional. modifyListF(F<A,List<B>> f)
modify polymorphically the target of aPOptional
with an Applicative functionF<S,List<T>>
PPrism. modifyListF(F<A,List<B>> f)
modify polymorphically the target of aPPrism
with an Applicative functionabstract F<S,List<T>>
PTraversal. modifyListF(F<A,List<B>> f)
modify polymorphically the target of aPTraversal
with an Applicative functionF<S,List<S>>
Traversal. modifyListF(F<A,List<A>> f)
-
Uses of List in fj.function
Methods in fj.function that return List Modifier and Type Method Description static List<java.lang.String>
Strings. lines(java.lang.String s)
Methods in fj.function that return types with arguments of type List Modifier and Type Method Description static F<java.lang.String,List<java.lang.String>>
Strings. lines()
static F<List<java.lang.String>,java.lang.String>
Strings. unlines()
Methods in fj.function with parameters of type List Modifier and Type Method Description static boolean
Booleans. and(List<java.lang.Boolean> l)
Returns true if all the elements of the given list are true.static <A> F<A,java.lang.Boolean>
Booleans. andAll(List<F<A,java.lang.Boolean>> l)
Returns a composed predicate of given List of predicatesstatic <A,B>
F<B,F<A,B>>Visitor. association(List<P2<A,B>> x, Equal<A> eq)
Uses an association list to perform a lookup with equality and returns a function that can be applied to a default, followed by the associated key to return a value.static <A,B>
F<P1<B>,F<A,B>>Visitor. associationLazy(List<P2<A,B>> x, Equal<A> eq)
Uses an association list to perform a lookup with equality and returns a function that can be applied to a default, followed by the associated key to return a value.static <X> X
Visitor. findFirst(List<Option<X>> values, F0<X> def)
Returns the first value available in the given list of optional values.static <X> X
Visitor. nullablefindFirst(List<X> values, F0<X> def)
Returns the first non-null
value in the given list of optional values.static <A,B>
BVisitor. nullableVisitor(List<F<A,B>> visitors, F0<B> def, A value)
Returns the first non-null
value found in the list of visitors after application of the given value, otherwise returns the given default.static boolean
Booleans. or(List<java.lang.Boolean> l)
Returns true if any element of the given list is true.static <A> F<A,java.lang.Boolean>
Booleans. orAll(List<F<A,java.lang.Boolean>> l)
Returns a composed predicate of given List of predicatesstatic java.math.BigInteger
BigIntegers. product(List<java.math.BigInteger> ints)
Returns the product of a list of big integers.static double
Doubles. product(List<java.lang.Double> doubles)
Returns the product of a list of doubles.static int
Integers. product(List<java.lang.Integer> ints)
Returns the product of a list of integers.static long
Longs. product(List<java.lang.Long> longs)
Returns the product of a list of integers.static java.math.BigInteger
BigIntegers. sum(List<java.math.BigInteger> ints)
Sums a list of big integers.static double
Doubles. sum(List<java.lang.Double> doubles)
Sums a list of doubles.static int
Integers. sum(List<java.lang.Integer> ints)
Sums a list of integers.static long
Longs. sum(List<java.lang.Long> longs)
Sums a list of longs.static java.lang.String
Strings. unlines(List<java.lang.String> list)
static <A,B>
BVisitor. visitor(List<F<A,Option<B>>> visitors, F0<B> def, A value)
Returns the first value found in the list of visitors after application of the given value, otherwise returns the given default. -
Uses of List in fj.parser
Methods in fj.parser that return types with arguments of type List Modifier and Type Method Description static <I,A,E>
Parser<I,List<A>,E>Parser. sequence(List<Parser<I,A,E>> ps)
Sequence the list of parsers throughParser.bind(fj.F<A, fj.parser.Parser<I, B, E>>)
.Methods in fj.parser with parameters of type List Modifier and Type Method Description static <I,A,E>
Parser<I,List<A>,E>Parser. sequence(List<Parser<I,A,E>> ps)
Sequence the list of parsers throughParser.bind(fj.F<A, fj.parser.Parser<I, B, E>>)
.
-