LanguageExt.Core

LanguageExt.Core Traits Monoid

Contents

interface Monoid <A> Source #

where A : Monoid<A>

Monoid trait

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

Parameters

type A

The type being described as a monoid

Properties

property A Empty Source #

Identity

class Monoid Source #

Methods

method A empty <A> () Source #

where A : Monoid<A>

The identity of append

method A combine <A> (A x, A y) Source #

where A : Monoid<A>

Combine two structures

method A combine <A> (A mx, A my, A mz, params A[] xs) Source #

where A : Monoid<A>

Fold a list using the monoid.

method A combine <A> (IEnumerable<A> xs) Source #

where A : Monoid<A>

Fold a list using the monoid.

method A combine <A> (Seq<A> xs) Source #

where A : Monoid<A>

Fold a list using the monoid.