frunk

Module monoid

source
Expand description

Module for holding Monoid typeclass definitions and default implementations

A Monoid is a Semigroup that has a defined empty/zero value. This allows us to define a combine_all method to work on a list of said things:

Traits§

  • A Monoid is a Semigroup that has an empty/ zero value

Functions§

  • Given a sequence of xs, combine them and return the total
  • Return this combined with itself n times.