Package | Description |
---|---|
eu.bandm.tools.ops | |
eu.bandm.tools.util |
Collection of mostly unrelated, tiny, ubiquitously needed
auxiliary classes for many different purposes.
|
Modifier and Type | Method and Description |
---|---|
static GenMonoid<Object,String> |
Monoids.concat(String separator) |
static <A> GenMonoid<A,List<A>> |
Monoids.free() |
static <A,M> GenMonoid<A,M> |
Monoids.generate(M neutral,
Function<? super A,? extends M> unit,
BiFunction<? super M,? super M,? extends M> combine) |
static <A> GenMonoid<A,Set<? extends A>> |
Monoids.setUnion() |
Modifier and Type | Method and Description |
---|---|
static <A,B> B |
Collections.fold(GenMonoid<? super A,B> mon,
Collection<? extends A> things) |
static <A,M> M |
Iterables.fold(GenMonoid<? super A,M> monoid,
Iterable<? extends A> things) |
static <A,M> Function<A,M> |
Monoids.unit(GenMonoid<? super A,? extends M> monoid) |
static <A,B,C> Map<A,C> |
Collections.zip(GenMonoid<B,C> mon,
Map<A,B> m,
Map<A,B> n) |
Modifier and Type | Field and Description |
---|---|
static GenMonoid<BigInteger,Rational> |
Rational.addition |
static GenMonoid<BigInteger,Rational> |
Rational.multiplication |
see also the complete user documentation .