Package fj.function
Class BigIntegers
java.lang.Object
fj.function.BigIntegers
Curried functions over Integers.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final F
<BigInteger, BigInteger> Absolute value.static final F
<BigInteger, F<BigInteger, BigInteger>> Curried Integer addition.static final F
<BigInteger, F<BigInteger, BigInteger>> Curried Integer multiplication.static final F
<BigInteger, BigInteger> Negation.static final F
<BigInteger, F<Integer, BigInteger>> Power.static final F
<BigInteger, F<BigInteger, BigInteger>> Remainder.static final F
<BigInteger, F<BigInteger, BigInteger>> Curried Integer subtraction. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BigInteger
product
(List<BigInteger> ints) Returns the product of a list of big integers.static BigInteger
sum
(List<BigInteger> ints) Sums a list of big integers.
-
Field Details
-
add
Curried Integer addition. -
multiply
Curried Integer multiplication. -
subtract
Curried Integer subtraction. -
negate
Negation. -
abs
Absolute value. -
remainder
Remainder. -
power
Power.
-
-
Constructor Details
-
BigIntegers
private BigIntegers()
-
-
Method Details
-
sum
Sums a list of big integers.- Parameters:
ints
- A list of big integers to sum.- Returns:
- The sum of the big integers in the list.
-
product
Returns the product of a list of big integers.- Parameters:
ints
- A list of big integers to multiply together.- Returns:
- The product of the big integers in the list.
-