trait Monoid[a: Type] with SemiGroup[a]
A trait for Monoids, objects that support an associative binary operation combine and neutral element empty.
combine
empty
def empty(_unit: Unit): a with Monoid[a]
Returns a neutral element.
def combine(x: a, y: a): a with Monoid[a]
def fold(f: f[a]): a with Foldable[f], Monoid[a]
Returns the result of applying combine to all the elements in t, using empty as the initial value.
t