Copyright 2008 - 2010 Tony Morris, Runar Bjarnason, Tom Adams, Brad Clow, Ricky Clarkson, Nick Partridge, Jason Zaugg

This software is released under an open source BSD licence.

fj
Class P

java.lang.Object
  extended by fj.P

public final class P
extends java.lang.Object

Functions across products.


Method Summary
static
<A> P1<A>
p(A a)
          A function that puts an element in a product-1.
static
<A,B> P2<A,B>
p(A a, B b)
          A function that puts elements in a product-2.
static
<A,B,C> P3<A,B,C>
p(A a, B b, C c)
          A function that puts elements in a product-3.
static
<A,B,C,D> P4<A,B,C,D>
p(A a, B b, C c, D d)
          A function that puts elements in a product-4.
static
<A,B,C,D,E>
P5<A,B,C,D,E>
p(A a, B b, C c, D d, E e)
          A function that puts elements in a product-5.
static
<A,B,C,D,E,F$>
P6<A,B,C,D,E,F$>
p(A a, B b, C c, D d, E e, F$ f)
          A function that puts elements in a product-6.
static
<A,B,C,D,E,F$,G>
P7<A,B,C,D,E,F$,G>
p(A a, B b, C c, D d, E e, F$ f, G g)
          A function that puts elements in a product-7.
static
<A,B,C,D,E,F$,G,H>
P8<A,B,C,D,E,F$,G,H>
p(A a, B b, C c, D d, E e, F$ f, G g, H h)
          A function that puts elements in a product-8.
static
<A> F<A,P1<A>>
p1()
          A function that puts an element in a product-1.
static
<A,B> F<A,F<B,P2<A,B>>>
p2()
          A function that puts an element in a product-2.
static
<A,B,C> F<A,F<B,F<C,P3<A,B,C>>>>
p3()
          A function that puts an element in a product-3.
static
<A,B,C,D> F<A,F<B,F<C,F<D,P4<A,B,C,D>>>>>
p4()
          A function that puts an element in a product-4.
static
<A,B,C,D,E>
F<A,F<B,F<C,F<D,F<E,P5<A,B,C,D,E>>>>>>
p5()
          A function that puts an element in a product-5.
static
<A,B,C,D,E,F$>
F<A,F<B,F<C,F<D,F<E,F<F$,P6<A,B,C,D,E,F$>>>>>>>
p6()
          A function that puts an element in a product-6.
static
<A,B,C,D,E,F$,G>
F<A,F<B,F<C,F<D,F<E,F<F$,F<G,P7<A,B,C,D,E,F$,G>>>>>>>>
p7()
          A function that puts an element in a product-7.
static
<A,B,C,D,E,F$,G,H>
F<A,F<B,F<C,F<D,F<E,F<F$,F<G,F<H,P8<A,B,C,D,E,F$,G,H>>>>>>>>>
p8()
          A function that puts an element in a product-8.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

p1

public static <A> F<A,P1<A>> p1()
A function that puts an element in a product-1.

Returns:
A function that puts an element in a product-1.

p

public static <A> P1<A> p(A a)
A function that puts an element in a product-1.

Parameters:
a - The element.
Returns:
The product-1.

p2

public static <A,B> F<A,F<B,P2<A,B>>> p2()
A function that puts an element in a product-2.

Returns:
A function that puts an element in a product-2.

p

public static <A,B> P2<A,B> p(A a,
                              B b)
A function that puts elements in a product-2.

Parameters:
a - An element.
b - An element.
Returns:
The product-2.

p3

public static <A,B,C> F<A,F<B,F<C,P3<A,B,C>>>> p3()
A function that puts an element in a product-3.

Returns:
A function that puts an element in a product-3.

p

public static <A,B,C> P3<A,B,C> p(A a,
                                  B b,
                                  C c)
A function that puts elements in a product-3.

Parameters:
a - An element.
b - An element.
c - An element.
Returns:
The product-3.

p4

public static <A,B,C,D> F<A,F<B,F<C,F<D,P4<A,B,C,D>>>>> p4()
A function that puts an element in a product-4.

Returns:
A function that puts an element in a product-4.

p

public static <A,B,C,D> P4<A,B,C,D> p(A a,
                                      B b,
                                      C c,
                                      D d)
A function that puts elements in a product-4.

Parameters:
a - An element.
b - An element.
c - An element.
d - An element.
Returns:
The product-4.

p5

public static <A,B,C,D,E> F<A,F<B,F<C,F<D,F<E,P5<A,B,C,D,E>>>>>> p5()
A function that puts an element in a product-5.

Returns:
A function that puts an element in a product-5.

p

public static <A,B,C,D,E> P5<A,B,C,D,E> p(A a,
                                          B b,
                                          C c,
                                          D d,
                                          E e)
A function that puts elements in a product-5.

Parameters:
a - An element.
b - An element.
c - An element.
d - An element.
e - An element.
Returns:
The product-5.

p6

public static <A,B,C,D,E,F$> F<A,F<B,F<C,F<D,F<E,F<F$,P6<A,B,C,D,E,F$>>>>>>> p6()
A function that puts an element in a product-6.

Returns:
A function that puts an element in a product-6.

p

public static <A,B,C,D,E,F$> P6<A,B,C,D,E,F$> p(A a,
                                                B b,
                                                C c,
                                                D d,
                                                E e,
                                                F$ f)
A function that puts elements in a product-6.

Parameters:
a - An element.
b - An element.
c - An element.
d - An element.
e - An element.
f - An element.
Returns:
The product-6.

p7

public static <A,B,C,D,E,F$,G> F<A,F<B,F<C,F<D,F<E,F<F$,F<G,P7<A,B,C,D,E,F$,G>>>>>>>> p7()
A function that puts an element in a product-7.

Returns:
A function that puts an element in a product-7.

p

public static <A,B,C,D,E,F$,G> P7<A,B,C,D,E,F$,G> p(A a,
                                                    B b,
                                                    C c,
                                                    D d,
                                                    E e,
                                                    F$ f,
                                                    G g)
A function that puts elements in a product-7.

Parameters:
a - An element.
b - An element.
c - An element.
d - An element.
e - An element.
f - An element.
g - An element.
Returns:
The product-7.

p8

public static <A,B,C,D,E,F$,G,H> F<A,F<B,F<C,F<D,F<E,F<F$,F<G,F<H,P8<A,B,C,D,E,F$,G,H>>>>>>>>> p8()
A function that puts an element in a product-8.

Returns:
A function that puts an element in a product-8.

p

public static <A,B,C,D,E,F$,G,H> P8<A,B,C,D,E,F$,G,H> p(A a,
                                                        B b,
                                                        C c,
                                                        D d,
                                                        E e,
                                                        F$ f,
                                                        G g,
                                                        H h)
A function that puts elements in a product-8.

Parameters:
a - An element.
b - An element.
c - An element.
d - An element.
e - An element.
f - An element.
g - An element.
h - An element.
Returns:
The product-8.

Copyright 2008 - 2010 Tony Morris, Runar Bjarnason, Tom Adams, Brad Clow, Ricky Clarkson, Nick Partridge, Jason Zaugg

This software is released under an open source BSD licence.