LanguageExt.Core

LanguageExt.Core Traits Semigroup

Contents

interface Semigroup <A> Source #

where A : Semigroup<A>

Methods

method A Combine (A rhs) Source #

An associative binary operation.

Parameters

param this

The first operand to the operation

param rhs

The second operand to the operation

returns

The result of the operation

Operators

operator + (A lhs, A rhs) Source #

An associative binary operation.

Parameters

param lhs

The first operand to the operation

param rhs

The second operand to the operation

returns

The result of the operation

class Semigroup Source #

Methods

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

where A : Semigroup<A>

An associative binary operation

Parameters

param x

The left hand side of the operation

param y

The right hand side of the operation

returns

The result of the operation

class Prelude Source #

Methods

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

where A : Semigroup<A>

An associative binary operation

Parameters

param x

The left hand side of the operation

param y

The right hand side of the operation

returns

The result of the operation

method Either<L, R> combine <L, R> (Either<L, R> lhs, Either<L, R> rhs) Source #

where R : Semigroup<R>

An associative binary operation

Parameters

param lhs

Left-hand side of the operation

param rhs

Right-hand side of the operation

returns

lhs + rhs

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

where NEWTYPE : NewType<NEWTYPE, A>
where A : Semigroup<A>

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

where NUMTYPE : NumType<NUMTYPE, NUM, A>
where NUM : Num<A>
where A : Semigroup<A>

An associative binary operation

Parameters

param x

The left hand side of the operation

param y

The right hand side of the operation

returns

The result of the operation

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

where NEWTYPE : NewType<NEWTYPE, A, PRED>
where PRED : Pred<A>
where A : Semigroup<A>

An associative binary operation

Parameters

param x

The left hand side of the operation

param y

The right hand side of the operation

returns

The result of the operation

method NUMTYPE combine <NUMTYPE, NUM, A, PRED> (NumType<NUMTYPE, NUM, A, PRED> x, NumType<NUMTYPE, NUM, A, PRED> y) Source #

where NUMTYPE : NumType<NUMTYPE, NUM, A, PRED>
where PRED : Pred<A>
where NUM : Num<A>
where A : Semigroup<A>

An associative binary operation

Parameters

param x

The left hand side of the operation

param y

The right hand side of the operation

returns

The result of the operation

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

where A : Semigroup<A>

An associative binary operation

Parameters

param x

The left hand side of the operation

param y

The right hand side of the operation

returns

The result of the operation

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

where A : Semigroup<A>

An associative binary operation

Parameters

param x

The left hand side of the operation

param y

The right hand side of the operation

returns

The result of the operation