Package fj.function
Class Longs
java.lang.Object
fj.function.Longs
Curried functions over Longs.
-
Field Summary
FieldsModifier and TypeFieldDescriptionAbsolute value.Curried Long addition.Curried Long multiplication.Negation.Remainder.Curried Long subtraction. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
add
Curried Long addition. -
multiply
Curried Long multiplication. -
subtract
Curried Long subtraction. -
negate
Negation. -
abs
Absolute value. -
remainder
Remainder.
-
-
Constructor Details
-
Longs
private Longs()
-
-
Method Details
-
sum
Sums a list of longs.- Parameters:
longs
- A list of longs to sum.- Returns:
- The sum of the longs in the list.
-
product
Returns the product of a list of integers.- Parameters:
longs
- A list of longs to multiply together.- Returns:
- The product of the longs in the list.
-
fromString
A function that converts strings to integers.- Returns:
- A function that converts strings to integers.
-