LanguageExt.Core

LanguageExt.Core Type Classes Monoid

Contents

interface Monoid <A> Source #

Monoid type-class

A monoid is a type with an identity and an associative binary operation.

Parameters

type A

The type being described as a monoid

class TypeClass Source #

Methods

method A mempty <MONOID, A> () Source #

where MONOID : struct, Monoid<A>

method A mconcat <MONOID, A> (IEnumerable<A> xs) Source #

where MONOID : struct, Monoid<A>

Fold a list using the monoid.

method A mconcat <MONOID, A> (params A[] xs) Source #

where MONOID : struct, Monoid<A>

Fold a list using the monoid.