Uses of Class
fj.data.NonEmptyList
-
Packages that use NonEmptyList 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.vector Fixed-length vectors -
-
Uses of NonEmptyList in fj
Methods in fj that return types with arguments of type NonEmptyList Modifier and Type Method Description default F<NonEmptyList<A>,NonEmptyList<B>>F. mapNel()Promotes this function to map over a NonEmptyList.default F<NonEmptyList<A>,NonEmptyList<B>>F. mapNel()Promotes this function to map over a NonEmptyList.default F<A,NonEmptyList<B>>F. nelK()Promotes this function to return its value in a NonEmptyList.default F2<NonEmptyList<A>,NonEmptyList<B>,NonEmptyList<C>>F2. nelM()Promotes this function to a function on non-empty lists.default F2<NonEmptyList<A>,NonEmptyList<B>,NonEmptyList<C>>F2. nelM()Promotes this function to a function on non-empty lists.default F2<NonEmptyList<A>,NonEmptyList<B>,NonEmptyList<C>>F2. nelM()Promotes this function to a function on non-empty lists.static <A> Equal<NonEmptyList<A>>Equal. nonEmptyListEqual(Equal<A> ea)An equal instance for theNonEmptyListtype.static <A> Hash<NonEmptyList<A>>Hash. nonEmptyListHash(Hash<A> ha)A hash instance for theNonEmptyListtype.static <A> Ord<NonEmptyList<A>>Ord. nonEmptyListOrd(Ord<A> oa)An order instance for theNonEmptyListtype.static <A> Semigroup<NonEmptyList<A>>Semigroup. nonEmptyListSemigroup()A semigroup for non-empty lists.static <A> Show<NonEmptyList<A>>Show. nonEmptyListShow(Show<A> sa)A show instance for theNonEmptyListtype.default F2<NonEmptyList<A>,NonEmptyList<B>,NonEmptyList<C>>F2. zipNelM()Promotes this function to zip two non-empty lists, applying the function lock-step over both lists.default F2<NonEmptyList<A>,NonEmptyList<B>,NonEmptyList<C>>F2. zipNelM()Promotes this function to zip two non-empty lists, applying the function lock-step over both lists.default F2<NonEmptyList<A>,NonEmptyList<B>,NonEmptyList<C>>F2. zipNelM()Promotes this function to zip two non-empty lists, applying the function lock-step over both lists.Methods in fj with parameters of type NonEmptyList Modifier and Type Method Description ASemigroup. sumNel(NonEmptyList<A> as)Sums the given values with left-fold. -
Uses of NonEmptyList in fj.control.parallel
Methods in fj.control.parallel that return types with arguments of type NonEmptyList Modifier and Type Method Description <A,B>
Promise<NonEmptyList<B>>ParModule. parExtend(NonEmptyList<A> as, F<NonEmptyList<A>,B> f)Maps the given function across all sublists of the given NonEmptyList in parallel.<A,B>
Promise<NonEmptyList<B>>ParModule. parMap(NonEmptyList<A> as, F<A,B> f)Maps across a nonempty list in parallel.Methods in fj.control.parallel with parameters of type NonEmptyList Modifier and Type Method Description <A,B>
Promise<NonEmptyList<B>>ParModule. parExtend(NonEmptyList<A> as, F<NonEmptyList<A>,B> f)Maps the given function across all sublists of the given NonEmptyList in parallel.<A,B>
Promise<NonEmptyList<B>>ParModule. parMap(NonEmptyList<A> as, F<A,B> f)Maps across a nonempty list in parallel.Method parameters in fj.control.parallel with type arguments of type NonEmptyList Modifier and Type Method Description <A,B>
Promise<NonEmptyList<B>>ParModule. parExtend(NonEmptyList<A> as, F<NonEmptyList<A>,B> f)Maps the given function across all sublists of the given NonEmptyList in parallel. -
Uses of NonEmptyList in fj.data
Methods in fj.data that return NonEmptyList Modifier and Type Method Description NonEmptyList<A>NonEmptyList. append(List<A> as)Appends the given list to this list.NonEmptyList<A>NonEmptyList. append(NonEmptyList<A> as)Appends the given list to this list.<B> NonEmptyList<B>NonEmptyList. bind(F<A,NonEmptyList<B>> f)Binds the given function across each element of this list with a final join.NonEmptyList<A>NonEmptyList. cons(A a)Prepend the given value to this list.NonEmptyList<A>NonEmptyList. intersperse(A a)Intersperses the given argument between each element of this non empty list.static <A> NonEmptyList<A>NonEmptyList. join(NonEmptyList<NonEmptyList<A>> o)Concatenate (join) a non empty list of non empty lists.<B> NonEmptyList<B>NonEmptyList. map(F<A,B> f)Maps the given function across this list.<B> NonEmptyList<B>NonEmptyList. mapTails(F<NonEmptyList<A>,B> f)Maps the given function across the tails of this list (comonad pattern).static <A> NonEmptyList<A>NonEmptyList. nel(A head, A... tail)Constructs a non empty list from the given elements.static <A> NonEmptyList<A>NonEmptyList. nel(A head, List<A> tail)Return a non-empty list with the given head and tail.NonEmptyList<A>NonEmptyList. reverse()Reverse this non empty list in constant stack space.NonEmptyList<A>NonEmptyList. snoc(A a)Appends (snoc) the given element to this non empty list to produce a new non empty list.NonEmptyList<A>NonEmptyList. sort(Ord<A> o)Sorts this non empty list using the given order over elements using a merge sort algorithm.NonEmptyList<NonEmptyList<A>>NonEmptyList. sublists()Returns a NonEmptyList of the sublists of this list.NonEmptyList<NonEmptyList<A>>NonEmptyList. tails()Returns a NonEmptyList of the tails of this list.<B> NonEmptyList<P2<A,B>>NonEmptyList. zip(NonEmptyList<B> bs)Zips this non empty list with the given non empty list to produce a list of pairs.NonEmptyList<P2<A,java.lang.Integer>>NonEmptyList. zipIndex()Zips this non empty list with the index of its element as a pair.<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.Methods in fj.data that return types with arguments of type NonEmptyList Modifier and Type Method Description static <E,T>
Validation<NonEmptyList<E>,T>Validation. failNEL(E e)Returns a failing validation containing a non-empty list that contains the given value.static <A> Option<NonEmptyList<A>>NonEmptyList. fromList(List<A> as)Returns a potential non-empty list from the given list.static <A> F<A,NonEmptyList<A>>NonEmptyList. nel()Returns a function that puts an element into a non-empty list.Validation<NonEmptyList<E>,T>Validation. nel()Puts this validation's failing value in a non-empty list if there is one.NonEmptyList<NonEmptyList<A>>NonEmptyList. sublists()Returns a NonEmptyList of the sublists of this list.NonEmptyList<NonEmptyList<A>>NonEmptyList. tails()Returns a NonEmptyList of the tails of this list.static <A> F<NonEmptyList<A>,List<A>>NonEmptyList. toList_()Returns a function that takes a non-empty list to a list.static <A,B>
P2<NonEmptyList<A>,NonEmptyList<B>>NonEmptyList. unzip(NonEmptyList<P2<A,B>> xs)Transforms a non empty list of pairs into a non empty list of first components and a non empty list of second components.static <A,B>
P2<NonEmptyList<A>,NonEmptyList<B>>NonEmptyList. unzip(NonEmptyList<P2<A,B>> xs)Transforms a non empty list of pairs into a non empty list of first components and a non empty list of second components.Methods in fj.data with parameters of type NonEmptyList Modifier and Type Method Description NonEmptyList<A>NonEmptyList. append(NonEmptyList<A> as)Appends the given list to this list.static <A> NonEmptyList<A>NonEmptyList. join(NonEmptyList<NonEmptyList<A>> o)Concatenate (join) a non empty list of non empty lists.static <A,B>
P2<NonEmptyList<A>,NonEmptyList<B>>NonEmptyList. unzip(NonEmptyList<P2<A,B>> xs)Transforms a non empty list of pairs into a non empty list of first components and a non empty list of second components.<B> NonEmptyList<P2<A,B>>NonEmptyList. zip(NonEmptyList<B> bs)Zips this non empty list with the given non empty list to produce a list of pairs.Method parameters in fj.data with type arguments of type NonEmptyList Modifier and Type Method Description <B> NonEmptyList<B>NonEmptyList. bind(F<A,NonEmptyList<B>> f)Binds the given function across each element of this list with a final join.static <A> NonEmptyList<A>NonEmptyList. join(NonEmptyList<NonEmptyList<A>> o)Concatenate (join) a non empty list of non empty lists.<B> NonEmptyList<B>NonEmptyList. mapTails(F<NonEmptyList<A>,B> f)Maps the given function across the tails of this list (comonad pattern). -
Uses of NonEmptyList in fj.data.vector
Methods in fj.data.vector that return NonEmptyList Modifier and Type Method Description NonEmptyList<A>V2. toNonEmptyList()Returns a nonempty list with the elements of this vector.NonEmptyList<A>V3. toNonEmptyList()Returns a nonempty list with the elements of this vector.NonEmptyList<A>V4. toNonEmptyList()Returns a nonempty list with the elements of this vector.NonEmptyList<A>V5. toNonEmptyList()Returns a nonempty list with the elements of this vector.NonEmptyList<A>V6. toNonEmptyList()Returns a nonempty list with the elements of this vector.NonEmptyList<A>V7. toNonEmptyList()Returns a nonempty list with the elements of this vector.NonEmptyList<A>V8. toNonEmptyList()Returns a nonempty list with the elements of this vector.
-