monoid library

Classes

BaseMonoid<T>
Base Monoid abstract class, extends BaseSemigroup with an empty getter

Functions

concatAll<T>(BaseMonoid<T> monoid) → T Function(List<T>)
Returns a function that takes a list of type T and concatenates all elements in the list using the monoid
max<A>(Bounded<A> bounded) BaseMonoid<A>
Creates a monoid that finds the maximum value in a Bounded structure
min<A>(Bounded<A> bounded) BaseMonoid<A>
Creates a monoid that finds the minimum value in a Bounded structure
reverse<A>(BaseMonoid<A> monoid) BaseMonoid<A>
Creates a reversed version of the provided monoid