Uses of Class
fj.data.IterableW

Packages that use IterableW
Package
Description
Types that set the premise for the existence of Functional Java.
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>>
    Promotes this function to return its value in an Iterable.
    Promotes this function to a function on Iterables.
    default F<Iterable<A>,IterableW<B>>
    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(Iterable<F<A,B>> f)
    Performs function application within an iterable (applicative functor pattern).
    <B, T extends 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(Iterable<A> a, 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 Iterable<A>>
    IterableW<A>
    IterableW.join(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 Iterable<A>>
    IterableW<IterableW<A>>
    IterableW.sequence(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(Iterable<A> a)
    Wraps the given iterable.
    <B> IterableW<B>
    IterableW.zapp(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 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 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 Iterable<A>>
    F<Iterable<T>,IterableW<A>>
    IterableW.join()
    Returns a function that joins an Iterable of Iterables into a single Iterable.
    static <A, B, C> F<Iterable<A>,F<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 Iterable<A>>
    IterableW<IterableW<A>>
    IterableW.sequence(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 Iterable<A>>
    F<T,IterableW<A>>
    IterableW.wrap()
    Provides a function that wraps the given iterable.