Uses of Class
fj.data.Natural
-
Packages that use Natural Package Description fj Types that set the premise for the existence of Functional Java.fj.data Common algebraic data types. -
-
Uses of Natural in fj
Fields in fj with type parameters of type Natural Modifier and Type Field Description static Monoid<Natural>Monoid. naturalAdditionMonoidA monoid that adds natural numbers.static Semigroup<Natural>Semigroup. naturalAdditionSemigroupA semigroup that adds natural numbers.static Equal<Natural>Equal. naturalEqualAn equal instance for theNaturaltype.static Hash<Natural>Hash. naturalHashA hash instance for theNaturaltype.static Semigroup<Natural>Semigroup. naturalMaximumSemigroupA semigroup that yields the maximum of natural numbers.static Semigroup<Natural>Semigroup. naturalMinimumSemigroupA semigroup that yields the minimum of natural numbers.static Monoid<Natural>Monoid. naturalMultiplicationMonoidA monoid that multiplies natural numbers.static Semigroup<Natural>Semigroup. naturalMultiplicationSemigroupA semigroup that multiplies natural numbers.static Ord<Natural>Ord. naturalOrdAn order instance for theNaturaltype.static Show<Natural>Show. naturalShowA show instance for natural numbers. -
Uses of Natural in fj.data
Fields in fj.data declared as Natural Modifier and Type Field Description static NaturalNatural. ONEThe natural number onestatic NaturalNatural. ZEROThe natural number zeroFields in fj.data with type parameters of type Natural Modifier and Type Field Description static F<Natural,F<Natural,Natural>>Natural. addA function that adds two natural numbers.static F<Natural,F<Natural,Natural>>Natural. addA function that adds two natural numbers.static F<Natural,F<Natural,Natural>>Natural. addA function that adds two natural numbers.static F<Natural,java.math.BigInteger>Natural. bigIntegerValueA function that returns the BigInteger value of a given Natural.static F<Natural,F<Natural,Natural>>Natural. divideA function that divides its second argument by its first.static F<Natural,F<Natural,Natural>>Natural. divideA function that divides its second argument by its first.static F<Natural,F<Natural,Natural>>Natural. divideA function that divides its second argument by its first.static F<Natural,F<Natural,V2<Natural>>>Natural. divmodA function that divides its second argument by its first, yielding both the quotient and the remainder.static F<Natural,F<Natural,V2<Natural>>>Natural. divmodA function that divides its second argument by its first, yielding both the quotient and the remainder.static F<Natural,F<Natural,V2<Natural>>>Natural. divmodA function that divides its second argument by its first, yielding both the quotient and the remainder.static F<java.math.BigInteger,Option<Natural>>Natural. fromBigIntA function that returns the natural number equal to a given BigIntegerstatic F<Natural,F<Natural,Natural>>Natural. modA function that yields the remainder of division of its second argument by its first.static F<Natural,F<Natural,Natural>>Natural. modA function that yields the remainder of division of its second argument by its first.static F<Natural,F<Natural,Natural>>Natural. modA function that yields the remainder of division of its second argument by its first.static F<Natural,F<Natural,Natural>>Natural. multiplyA function that multiplies a natural number by another.static F<Natural,F<Natural,Natural>>Natural. multiplyA function that multiplies a natural number by another.static F<Natural,F<Natural,Natural>>Natural. multiplyA function that multiplies a natural number by another.static Enumerator<Natural>Enumerator. naturalEnumeratorAn enumerator forNaturalstatic F<Natural,F<Natural,Option<Natural>>>Natural. subtractA function that subtracts its first argument from its second.static F<Natural,F<Natural,Option<Natural>>>Natural. subtractA function that subtracts its first argument from its second.static F<Natural,F<Natural,Option<Natural>>>Natural. subtractA function that subtracts its first argument from its second.Methods in fj.data that return Natural Modifier and Type Method Description NaturalNatural. add(Natural n)Add two natural numbers together.NaturalNatural. divide(Natural n)Divide a natural number by another.NaturalNatural. mod(Natural n)Take the remainder of a natural number division.NaturalNatural. multiply(Natural n)Multiply a natural number by another.static NaturalNatural. product(List<Natural> ns)Takes the product of a list of natural numbers.static NaturalNatural. product(Stream<Natural> ns)Takes the product of a stream of natural numbers.NaturalNatural. succ()Return the successor of this natural numberstatic NaturalNatural. sum(List<Natural> ns)Sums a list of natural numbers.static NaturalNatural. sum(Stream<Natural> ns)Sums a stream of natural numbers.Methods in fj.data that return types with arguments of type Natural Modifier and Type Method Description V2<Natural>Natural. divmod(Natural n)Divide a natural number by another yielding both the quotient and the remainder.static Option<Natural>Natural. natural(long i)Returns the natural number equal to the given longstatic Option<Natural>Natural. natural(java.math.BigInteger i)Returns the natural number equal to the given BigIntegerOption<Natural>Natural. pred()Return the predecessor of this natural numberstatic F<Natural,Option<Natural>>Natural. pred_()First-class predecessor function.static F<Natural,Option<Natural>>Natural. pred_()First-class predecessor function.Option<Natural>Natural. subtract(Natural n)Subtract a natural number from another.static F<Natural,Natural>Natural. succ_()First-class successor function.static F<Natural,Natural>Natural. succ_()First-class successor function.Methods in fj.data with parameters of type Natural Modifier and Type Method Description NaturalNatural. add(Natural n)Add two natural numbers together.NaturalNatural. divide(Natural n)Divide a natural number by another.V2<Natural>Natural. divmod(Natural n)Divide a natural number by another yielding both the quotient and the remainder.NaturalNatural. mod(Natural n)Take the remainder of a natural number division.NaturalNatural. multiply(Natural n)Multiply a natural number by another.Option<Natural>Natural. subtract(Natural n)Subtract a natural number from another.Method parameters in fj.data with type arguments of type Natural Modifier and Type Method Description static <A> Stream<A>Stream. fromFunction(F<Natural,A> f)Converts a function of natural numbers to a stream.static NaturalNatural. product(List<Natural> ns)Takes the product of a list of natural numbers.static NaturalNatural. product(Stream<Natural> ns)Takes the product of a stream of natural numbers.static NaturalNatural. sum(List<Natural> ns)Sums a list of natural numbers.static NaturalNatural. sum(Stream<Natural> ns)Sums a stream of natural numbers.
-