MonadEx v1.1.3 Monoid protocol View Source

Monoids have two principle operations: empty/zero and append.

This protocol doesn’t have an empty function due to the limitations of Elixir protocols. I can implement this functionality using Behaviours, but I haven’t done so yet.

Link to this section Summary

Functions

Takes two monoids and concatenates them

Link to this section Types

Link to this section Functions

Link to this function mappend(monoid1, monoid2) View Source
mappend(t(), t()) :: t()

Takes two monoids and concatenates them.

All collections, such as lists and strings, are monoids. Many other types are monoids too.