Uses of Class
fj.data.IterableW
-
Packages that use IterableW Package Description fj Types that set the premise for the existence of Functional Java.fj.data Common algebraic data types. -
-
Uses of IterableW in fj
Methods in fj that return types with arguments of type IterableW Modifier and Type Method Description default F<A,IterableW<B>>
F. iterableK()
Promotes this function to return its value in an Iterable.default F2<java.lang.Iterable<A>,java.lang.Iterable<B>,IterableW<C>>
F2. iterableM()
Promotes this function to a function on Iterables.default F<java.lang.Iterable<A>,IterableW<B>>
F. mapIterable()
Promotes this function to map over Iterables. -
Uses of IterableW in fj.data
Methods in fj.data that return IterableW Modifier and Type Method Description <B> IterableW<B>
IterableW. apply(java.lang.Iterable<F<A,B>> f)
Performs function application within an iterable (applicative functor pattern).<B,T extends java.lang.Iterable<B>>
IterableW<B>IterableW. bind(F<A,T> f)
Binds the given function across the wrapped Iterable with a final join.static <A,B,C>
IterableW<C>IterableW. bind(java.lang.Iterable<A> a, java.lang.Iterable<B> b, F<A,F<B,C>> f)
Binds the given function to the values in the given iterables with a final join.static <A> IterableW<A>
IterableW. iterable(A a)
Returns an Iterable that completely preserves the argument.static <A,T extends java.lang.Iterable<A>>
IterableW<A>IterableW. join(java.lang.Iterable<T> as)
Joins an Iterable of Iterables into a single Iterable.<B> IterableW<B>
IterableW. map(F<A,B> f)
Maps a given function across the wrapped Iterable.static <A,T extends java.lang.Iterable<A>>
IterableW<IterableW<A>>IterableW. sequence(java.lang.Iterable<T> as)
Performs a bind across each element of all iterables of an iterable, collecting the values in an iterable.static <A> IterableW<A>
IterableW. wrap(java.lang.Iterable<A> a)
Wraps the given iterable.<B> IterableW<B>
IterableW. zapp(java.lang.Iterable<F<A,B>> fs)
Zips this iterable with the given iterable of functions, applying each function in turn to the corresponding element in this iterable to produce a new iterable.Methods in fj.data that return types with arguments of type IterableW Modifier and Type Method Description static <A,B>
F<F<A,B>,F<A,IterableW<B>>>IterableW. arrow()
Provides a transformation from a function to a Iterable-valued function that is equivalent to it.static <A,B,T extends java.lang.Iterable<B>>
F<IterableW<A>,F<F<A,T>,IterableW<B>>>IterableW. bind()
The first-class bind function over Iterable.static <A,B,T extends java.lang.Iterable<B>>
F<IterableW<A>,F<F<A,T>,IterableW<B>>>IterableW. bind()
The first-class bind function over Iterable.static <A,B>
F<A,IterableW<B>>IterableW. iterable(F<A,B> f)
Wraps a given function's return value in a Iterable.static <A,T extends java.lang.Iterable<A>>
F<java.lang.Iterable<T>,IterableW<A>>IterableW. join()
Returns a function that joins an Iterable of Iterables into a single Iterable.static <A,B,C>
F<java.lang.Iterable<A>,F<java.lang.Iterable<B>,IterableW<C>>>IterableW. liftM2(F<A,F<B,C>> f)
Promotes a function of arity-2 to a function on iterables.static <A,B>
F<F<A,B>,F<IterableW<A>,IterableW<B>>>IterableW. map()
Returns a function that promotes any function so that it operates on Iterables.static <A,B>
F<F<A,B>,F<IterableW<A>,IterableW<B>>>IterableW. map()
Returns a function that promotes any function so that it operates on Iterables.static <A,T extends java.lang.Iterable<A>>
IterableW<IterableW<A>>IterableW. sequence(java.lang.Iterable<T> as)
Performs a bind across each element of all iterables of an iterable, collecting the values in an iterable.static <A,T extends java.lang.Iterable<A>>
F<T,IterableW<A>>IterableW. wrap()
Provides a function that wraps the given iterable.
-