Uses of Class
fj.P5

Packages that use P5
Package
Description
Types that set the premise for the existence of Functional Java.
Common algebraic data types.
Fixed-length vectors
  • Uses of P5 in fj

    Methods in fj that return P5
    Modifier and Type
    Method
    Description
    final <C, D, E> P5<A,B,C,D,E>
    P2.append(P3<C,D,E> el)
    Creates a P5 by adding the given element to the current P2
    final <D, E> P5<A,B,C,D,E>
    P3.append(P2<D,E> el)
    Creates a P5 by adding the given element to the current P3
    final <E> P5<A,B,C,D,E>
    P4.append(E el)
    Creates a P5 by adding the given element to the current P4
    static <A, B, C, D, E>
    P5<A,B,C,D,E>
    P.lazy(F<Unit,A> fa, F<Unit,B> fb, F<Unit,C> fc, F<Unit,D> fd, F<Unit,E> fe)
     
    static <A, B, C, D, E>
    P5<A,B,C,D,E>
    P.lazy(F0<A> pa, F0<B> pb, F0<C> pc, F0<D> pd, F0<E> pe)
     
    final <X> P5<X,B,C,D,E>
    P5.map1(F<A,X> f)
    Map the first element of the product.
    final <X> P5<A,X,C,D,E>
    P5.map2(F<B,X> f)
    Map the second element of the product.
    final <X> P5<A,B,X,D,E>
    P5.map3(F<C,X> f)
    Map the third element of the product.
    final <X> P5<A,B,C,X,E>
    P5.map4(F<D,X> f)
    Map the fourth element of the product.
    final <X> P5<A,B,C,D,X>
    P5.map5(F<E,X> f)
    Map the fifth element of the product.
    final P5<A,B,C,D,E>
    P5.memo()
    Provides a memoising P5 that remembers its values.
    static <A, B, C, D, E>
    P5<A,B,C,D,E>
    P.p(A a, B b, C c, D d, E e)
    A function that puts elements in a product-5.
    Methods in fj that return types with arguments of type P5
    Modifier and Type
    Method
    Description
    static <A, B, C, D, E>
    F<P5<A,B,C,D,E>,A>
    P5.__1()
    Returns a function that returns the first element of a product.
    static <A, B, C, D, E>
    F<P5<A,B,C,D,E>,B>
    P5.__2()
    Returns a function that returns the second element of a product.
    static <A, B, C, D, E>
    F<P5<A,B,C,D,E>,C>
    P5.__3()
    Returns a function that returns the third element of a product.
    static <A, B, C, D, E>
    F<P5<A,B,C,D,E>,D>
    P5.__4()
    Returns a function that returns the fourth element of a product.
    static <A, B, C, D, E>
    F<P5<A,B,C,D,E>,E>
    P5.__5()
    Returns a function that returns the fifth element of a product.
    static <A, B, C, D, E>
    F<A,F<B,F<C,F<D,F<E,P5<A,B,C,D,E>>>>>>
    P.p5()
    A function that puts an element in a product-5.
    static <A, B, C, D, E>
    Equal<P5<A,B,C,D,E>>
    Equal.p5Equal(Equal<A> ea, Equal<B> eb, Equal<C> ec, Equal<D> ed, Equal<E> ee)
    An equal instance for a product-5.
    static <A, B, C, D, E>
    Hash<P5<A,B,C,D,E>>
    Hash.p5Hash(Hash<A> ha, Hash<B> hb, Hash<C> hc, Hash<D> hd, Hash<E> he)
    A hash instance for a product-5.
    static <A, B, C, D, E>
    Show<P5<A,B,C,D,E>>
    Show.p5Show(Show<A> sa, Show<B> sb, Show<C> sc, Show<D> sd, Show<E> se)
    A show instance for the tuple-5 type.
    Methods in fj with parameters of type P5
    Modifier and Type
    Method
    Description
    final <C, D, E, F, G>
    P7<A,B,C,D,E,F,G>
    P2.append(P5<C,D,E,F,G> el)
    Creates a P7 by adding the given element to the current P2
    final <D, E, F, G, H>
    P8<A,B,C,D,E,F,G,H>
    P3.append(P5<D,E,F,G,H> el)
    Creates a P8 by adding the given element to the current P3
  • Uses of P5 in fj.data

    Methods in fj.data that return types with arguments of type P5
    Modifier and Type
    Method
    Description
    final <B, C, D, E>
    Option<P5<A,B,C,D,E>>
    Option.bindProduct(Option<B> ob, Option<C> oc, Option<D> od, Option<E> oe)
     
  • Uses of P5 in fj.data.vector

    Methods in fj.data.vector that return P5
    Modifier and Type
    Method
    Description
    P5<A,A,A,A,A>
    V5.p()
    Returns a homogeneous product-5 equivalent to this vector.
    Methods in fj.data.vector that return types with arguments of type P5
    Modifier and Type
    Method
    Description
    static <A> F<V5<A>,P5<A,A,A,A,A>>
    V5.p_()
    Returns a function that transforms a vector-5 to the equivalent product-5.
    Methods in fj.data.vector with parameters of type P5
    Modifier and Type
    Method
    Description
    static <A> V5<A>
    V5.p(P5<A,A,A,A,A> p)
    Creates a vector-5 from a homogeneous product-5.