Uses of Class
fj.data.NonEmptyList
Packages that use NonEmptyList
Package
Description
Types that set the premise for the existence of Functional Java.
Parallelization strategies.
Common algebraic data types.
Fixed-length vectors
-
Uses of NonEmptyList in fj
Methods in fj that return types with arguments of type NonEmptyListModifier and TypeMethodDescriptiondefault 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 theNonEmptyList
type.static <A> Hash
<NonEmptyList<A>> Hash.nonEmptyListHash
(Hash<A> ha) A hash instance for theNonEmptyList
type.static <A> Ord
<NonEmptyList<A>> Ord.nonEmptyListOrd
(Ord<A> oa) An order instance for theNonEmptyList
type.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 theNonEmptyList
type.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 NonEmptyListModifier and TypeMethodDescriptionSemigroup.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 NonEmptyListModifier and TypeMethodDescription<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 NonEmptyListModifier and TypeMethodDescription<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 NonEmptyListModifier and TypeMethodDescription<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 NonEmptyListModifier and TypeMethodDescriptionAppends the given list to this list.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.Prepend the given value to this list.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> 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> Return a non-empty list with the given head and tail.NonEmptyList.reverse()
Reverse this non empty list in constant stack space.Appends (snoc) the given element to this non empty list to produce a new non empty list.Sorts this non empty list using the given order over elements using a merge sort algorithm.NonEmptyList.sublists()
Returns a NonEmptyList of the sublists of this list.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.zipIndex()
Zips this non empty list with the index of its element as a pair.<B,
C> NonEmptyList <C> Zips this non empty list with the given non empty list using the given function to produce a new list.<B,
C> NonEmptyList <C> 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 NonEmptyListModifier and TypeMethodDescriptionstatic <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>> 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.final Validation
<NonEmptyList<E>, T> Validation.nel()
Puts this validation's failing value in a non-empty list if there is one.NonEmptyList.sublists()
Returns a NonEmptyList of the sublists of this list.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 NonEmptyListModifier and TypeMethodDescriptionNonEmptyList.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 NonEmptyListModifier and TypeMethodDescription<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 NonEmptyListModifier and TypeMethodDescriptionV2.toNonEmptyList()
Returns a nonempty list with the elements of this vector.V3.toNonEmptyList()
Returns a nonempty list with the elements of this vector.V4.toNonEmptyList()
Returns a nonempty list with the elements of this vector.V5.toNonEmptyList()
Returns a nonempty list with the elements of this vector.V6.toNonEmptyList()
Returns a nonempty list with the elements of this vector.V7.toNonEmptyList()
Returns a nonempty list with the elements of this vector.V8.toNonEmptyList()
Returns a nonempty list with the elements of this vector.