Final class FH\Monoids

Static methods

make<T>((function(T, T): T) $append, T $appendId): Monoid<T>
Return a monoid from an associative binary function and an identity value.
concat<T>(Monoid<T> $m, Traversable<T> $xs): T
intAdd(): Monoid<int>
(int,+,0)(\mathtt{int}, \mathtt{+}, \mathtt{0})
intMul(): Monoid<int>
(int,,1)(\mathtt{int}, \mathtt{*}, \mathtt{1})
stringConcat(): Monoid<string>
(string,.,)(\mathtt{string}, \mathtt{.}, \mathtt{''})
vectorConcat<T>(): Monoid<ImmVector<T>>
(ImmVector<T>,concat,ImmVector{})(\mathtt{ImmVector<T>}, \mathtt{concat}, \mathtt{ImmVector\{\}})