Uses of Class
fj.Monoid
Packages that use Monoid
Package
Description
Types that set the premise for the existence of Functional Java.
Parallelization strategies.
Common algebraic data types.
Provides 2-3 finger trees, a functional representation of persistent sequences supporting access to the ends in
amortized O(1) time.
Optic data types adapted from the Scala Monocle library
and inspired by the
Haskell Lens library.
-
Uses of Monoid in fj
Modifier and TypeFieldDescriptionstatic final Monoid<BigDecimal> Monoid.bigdecimalAdditionMonoidA monoid that adds big decimals.static final Monoid<BigDecimal> A monoid that multiplies big decimals.static final Monoid<BigInteger> Monoid.bigintAdditionMonoidA monoid that adds big integers.static final Monoid<BigInteger> Monoid.bigintMultiplicationMonoidA monoid that multiplies big integers.Monoid.conjunctionMonoidA monoid that ANDs booleans.Monoid.disjunctionMonoidA monoid that ORs booleans.Monoid.exclusiveDisjunctionMonoidA monoid that XORs booleans.Monoid.intAdditionMonoidA monoid that adds integers.Monoid.intMaxMonoidA monoid for the maximum of two integers.Monoid.intMinMonoidA monoid for the minimum of two integers.Monoid.intMultiplicationMonoidA monoid that multiplies integers.Monoid.longAdditionMonoidA monoid that adds longs.Monoid.longMultiplicationMonoidA monoid that multiplies longs.Monoid.naturalAdditionMonoidA monoid that adds natural numbers.Monoid.naturalMultiplicationMonoidA monoid that multiplies natural numbers.static final Monoid<StringBuffer> Monoid.stringBufferMonoidA monoid that appends string buffers.static final Monoid<StringBuilder> Monoid.stringBuilderMonoidA monoid that appends string builders.Monoid.stringMonoidA monoid that appends strings.Monoid.unitMonoidA monoid for the Unit value.Modifier and TypeMethodDescriptionMonoid.arrayMonoid()A monoid for arrays.Composes this monoid with another.<B,C> Monoid <C> Monoid.dual()Swaps the arguments when summing.Monoid.firstOptionMonoid()A monoid for options that take the first available value.Monoid.functionMonoid(Monoid<B> mb) A monoid for functions.A monoid for IO values.Monoid.lastOptionMonoid()A monoid for options that take the last available value.Semigroup.lift()Lifts the semigroup to obtain a trivial monoid.Monoid.listMonoid()A monoid for lists.static <A> Monoid<A> Constructs a monoid from the given sum function and zero value, which must follow the monoidal laws.static <A> Monoid<A> Constructs a monoid from the given sum function and zero value, which must follow the monoidal laws.Constructs a monoid from this semigroup and a zero value, which must follow the monoidal laws.static <A> Monoid<A> Monoid.monoidDef(Monoid.AltDefinition<A> def) Constructs a monoid from the given definition, which must follow the monoidal laws.static <A> Monoid<A> Monoid.monoidDef(Monoid.Definition<A> def) Constructs a monoid from the given definition, which must follow the monoidal laws.static <A> Monoid<A> Monoid.monoidDef(Semigroup.AltDefinition<A> s, A zero) Constructs a monoid from the given semigroup definition and zero value, which must follow the monoidal laws.static <A> Monoid<A> Monoid.monoidDef(Semigroup.Definition<A> s, A zero) Constructs a monoid from the given semigroup definition and zero value, which must follow the monoidal laws.Monoid.optionMonoid(Semigroup<A> aSemigroup) Lift aSemigroup<A>for A to aMonoid<Option<A>>, using Option.none() as zero.Monoid.setIntersectionMonoid(Bounded<A> bounded, Enumerator<A> enumerator) A intersection monoid for sets.A union monoid for sets.Monoid.streamMonoid()A monoid for streams.<B> Monoid<B> Maps the given functions across this monoid as an invariant functor.Modifier and TypeMethodDescriptionComposes this monoid with another.<B,C> Monoid <C> F.foldMapTree(Monoid<B> m) Returns a function that maps this function over a tree and folds it with the given monoid.Monoid.functionMonoid(Monoid<B> mb) A monoid for functions.A monoid for IO values. -
Uses of Monoid in fj.control.parallel
Methods in fj.control.parallel with parameters of type MonoidModifier and TypeMethodDescription<A,B> Promise <B> ParModule.parFoldMap(Stream<A> as, F<A, B> map, Monoid<B> reduce) Maps with the given function across the given stream in parallel, while folding with the given monoid.<A,B> Promise <B> ParModule.parFoldMap(Stream<A> as, F<A, B> map, Monoid<B> reduce, F<Stream<A>, P2<Stream<A>, Stream<A>>> chunking) Maps with the given function across chunks of the given stream in parallel, while folding with the given monoid.<A,B> Promise <B> ParModule.parFoldMap(Iterable<A> as, F<A, B> map, Monoid<B> reduce) Maps with the given function across the given iterable in parallel, while folding with the given monoid.<A,B> Promise <B> ParModule.parFoldMap(Iterable<A> as, F<A, B> map, Monoid<B> reduce, F<Iterable<A>, P2<Iterable<A>, Iterable<A>>> chunking) Maps with the given function across chunks of the given Iterable in parallel, while folding with the given monoid. -
Uses of Monoid in fj.data
Modifier and TypeMethodDescriptionstatic <K,A> PriorityQueue <K, A> Creates an empty priority queue.final <B> BFolds this Set using the given monoid.<B> BFolds this tree using the given monoid.Provides a function that folds a tree with the given monoid.final <B> BSet.foldMapRight(F<A, B> f, Monoid<B> m) Folds this Set from the right using the given monoid.final <B,C> TreeMap <B, C> Groups the elements of this list by a given keyFunction into aTreeMapand transforms the matching elements with the given valueFunction.static <W,A> Writer <W, A> static <W,A> Writer <W, A> -
Uses of Monoid in fj.data.fingertrees
Fields in fj.data.fingertrees declared as MonoidMethods in fj.data.fingertrees that return MonoidMethods in fj.data.fingertrees with parameters of type MonoidModifier and TypeMethodDescriptionstatic <V,A> FingerTree <V, A> Creates an empty finger tree with elements of type A and node annotations of type V.static <V,A> Measured <V, A> Constructs a Measured instance for the element type, given a monoid and a measuring function.static <V,A> Measured <V, A> Constructors in fj.data.fingertrees with parameters of type Monoid -
Uses of Monoid in fj.data.optic
Methods in fj.data.optic with parameters of type Monoid