LanguageExt.Core

LanguageExt.Core Traits Eq

Contents

interface Eq <in A> Source #

Equality trait

Parameters

type A

The type for which equality is defined

Methods

method bool Equals (A x, A y) Source #

Equality test

Parameters

param x

The left hand side of the equality operation

param y

The right hand side of the equality operation

returns

True if x and y are equal

class Eq Source #

Methods

method IEqualityComparer<A> ToEqualityComparer <EqA, A> (this EqA self) Source #

where EqA : Eq<A>

class EqExtensions Source #

Methods

method bool Equals <EQ, A> (this A[] x, A[] y) Source #

where EQ : Eq<A>

Structural equality test

Parameters

param x

The left hand side of the equality operation

param y

The right hand side of the equality operation

returns

True if x and y are equal

method bool Equals <EQ, A> (this A? mx, A? my) Source #

where EQ : Eq<A>
where A : struct

Structural equality test

Parameters

param mx

The left hand side of the equality operation

param my

The right hand side of the equality operation

returns

True if x and y are equal

method bool Equals <EQ, A> (this IEnumerable<A> x, IEnumerable<A> y) Source #

where EQ : Eq<A>

Structural equality test

Parameters

param x

The left hand side of the equality operation

param y

The right hand side of the equality operation

returns

True if x and y are equal

class Eq Source #

Methods

method bool equals <A> (A x, A y) Source #

where A : Eq<A>

Structural equality test

Parameters

param x

The left hand side of the equality operation

param y

The right hand side of the equality operation

returns

True if x and y are equal

class Prelude Source #

Methods

method bool equals <EQ, A> (A x, A y) Source #

where EQ : Eq<A>

Structural equality test

Parameters

param x

The left hand side of the equality operation

param y

The right hand side of the equality operation

returns

True if x and y are equal

method bool equals <EQ, A> (Option<A> x, Option<A> y) Source #

where EQ : Eq<A>

Structural equality test

Parameters

param x

The left hand side of the equality operation

param y

The right hand side of the equality operation

returns

True if x and y are equal

method bool equals <EQ, L, R> (Either<L, R> x, Either<L, R> y) Source #

where EQ : Eq<R>

Structural equality test

Parameters

param x

The left hand side of the equality operation

param y

The right hand side of the equality operation

returns

True if x and y are equal

method bool equals <EQA, EQB, A, B> (Either<A, B> x, Either<A, B> y) Source #

where EQA : Eq<A>
where EQB : Eq<B>

Structural equality test

Parameters

param x

The left hand side of the equality operation

param y

The right hand side of the equality operation

returns

True if x and y are equal

method bool equals <EQ, A> (A? mx, A? my) Source #

where EQ : Eq<A>
where A : struct

Structural equality test

Parameters

param mx

The left hand side of the equality operation

param my

The right hand side of the equality operation

returns

True if x and y are equal

method bool equals <EQ, A> (Lst<A> x, Lst<A> y) Source #

where EQ : Eq<A>

Structural equality test

Parameters

param x

The left hand side of the equality operation

param y

The right hand side of the equality operation

returns

True if x and y are equal

method bool equals <EQ, A> (HashSet<A> x, HashSet<A> y) Source #

where EQ : Eq<A>

Structural equality test

Parameters

param x

The left hand side of the equality operation

param y

The right hand side of the equality operation

returns

True if x and y are equal

method bool equals <EQ, A> (Que<A> x, Que<A> y) Source #

where EQ : Eq<A>

Structural equality test

Parameters

param x

The left hand side of the equality operation

param y

The right hand side of the equality operation

returns

True if x and y are equal

method bool equals <EQ, A> (Set<A> x, Set<A> y) Source #

where EQ : Eq<A>

Structural equality test

Parameters

param x

The left hand side of the equality operation

param y

The right hand side of the equality operation

returns

True if x and y are equal

method bool equals <EQ, A> (Arr<A> x, Arr<A> y) Source #

where EQ : Eq<A>

Structural equality test

Parameters

param x

The left hand side of the equality operation

param y

The right hand side of the equality operation

returns

True if x and y are equal

method bool equals <EQ, A> (A[] x, A[] y) Source #

where EQ : Eq<A>

Structural equality test

Parameters

param x

The left hand side of the equality operation

param y

The right hand side of the equality operation

returns

True if x and y are equal

method bool equals <EQ, A> (IEnumerable<A> x, IEnumerable<A> y) Source #

where EQ : Eq<A>

Structural equality test

Parameters

param x

The left hand side of the equality operation

param y

The right hand side of the equality operation

returns

True if x and y are equal

method bool equals <EQ, A> (Seq<A> x, Seq<A> y) Source #

where EQ : Eq<A>

Structural equality test

Parameters

param x

The left hand side of the equality operation

param y

The right hand side of the equality operation

returns

True if x and y are equal

method bool equals <NEWTYPE, EQ, A, PRED> (NewType<NEWTYPE, A, PRED> x, NewType<NEWTYPE, A, PRED> y) Source #

where EQ : Eq<A>
where PRED : Pred<A>
where NEWTYPE : NewType<NEWTYPE, A, PRED>

Structural equality test

Parameters

param x

The left hand side of the equality operation

param y

The right hand side of the equality operation

returns

True if x and y are equal