Package fj
Class P5<A,B,C,D,E>
java.lang.Object
fj.P5<A,B,C,D,E>
A product-5.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription__1()
Returns a function that returns the first element of a product.__2()
Returns a function that returns the second element of a product.__3()
Returns a function that returns the third element of a product.__4()
Returns a function that returns the fourth element of a product.__5()
Returns a function that returns the fifth element of a product.abstract A
_1()
Access the first element of the product._1_()
Returns the 1-product projection over the first element.abstract B
_2()
Access the second element of the product._2_()
Returns the 1-product projection over the second element.abstract C
_3()
Access the third element of the product._3_()
Returns the 1-product projection over the third element.abstract D
_4()
Access the fourth element of the product._4_()
Returns the 1-product projection over the fourth element.abstract E
_5()
Access the fifth element of the product._5_()
Returns the 1-product projection over the fifth element.append
(F el) final boolean
final int
hashCode()
Map the first element of the product.Map the second element of the product.Map the third element of the product.Map the fourth element of the product.Map the fifth element of the product.memo()
Provides a memoising P5 that remembers its values.final String
toString()
-
Constructor Details
-
P5
public P5()
-
-
Method Details
-
_1
Access the first element of the product.- Returns:
- The first element of the product.
-
_2
Access the second element of the product.- Returns:
- The second element of the product.
-
_3
Access the third element of the product.- Returns:
- The third element of the product.
-
_4
Access the fourth element of the product.- Returns:
- The fourth element of the product.
-
_5
Access the fifth element of the product.- Returns:
- The fifth element of the product.
-
map1
Map the first element of the product.- Parameters:
f
- The function to map with.- Returns:
- A product with the given function applied.
-
map2
Map the second element of the product.- Parameters:
f
- The function to map with.- Returns:
- A product with the given function applied.
-
map3
Map the third element of the product.- Parameters:
f
- The function to map with.- Returns:
- A product with the given function applied.
-
map4
Map the fourth element of the product.- Parameters:
f
- The function to map with.- Returns:
- A product with the given function applied.
-
map5
Map the fifth element of the product.- Parameters:
f
- The function to map with.- Returns:
- A product with the given function applied.
-
_1_
Returns the 1-product projection over the first element.- Returns:
- the 1-product projection over the first element.
-
_2_
Returns the 1-product projection over the second element.- Returns:
- the 1-product projection over the second element.
-
_3_
Returns the 1-product projection over the third element.- Returns:
- the 1-product projection over the third element.
-
_4_
Returns the 1-product projection over the fourth element.- Returns:
- the 1-product projection over the fourth element.
-
_5_
Returns the 1-product projection over the fifth element.- Returns:
- the 1-product projection over the fifth element.
-
append
-
append
-
append
-
memo
Provides a memoising P5 that remembers its values.- Returns:
- A P5 that calls this P5 once for any given element and remembers the value for subsequent calls.
-
__1
Returns a function that returns the first element of a product.- Returns:
- A function that returns the first element of a product.
-
__2
Returns a function that returns the second element of a product.- Returns:
- A function that returns the second element of a product.
-
__3
Returns a function that returns the third element of a product.- Returns:
- A function that returns the third element of a product.
-
__4
Returns a function that returns the fourth element of a product.- Returns:
- A function that returns the fourth element of a product.
-
__5
Returns a function that returns the fifth element of a product.- Returns:
- A function that returns the fifth element of a product.
-
toString
-
equals
-
hashCode
public final int hashCode()
-