LanguageExt.Core

LanguageExt.Core Class Instances Eq

Contents

struct EqArr <EqA, A> Source #

where EqA : Eq<A>

Array equality

Methods

method bool Equals (Arr<A> x, Arr<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

method int GetHashCode (Arr<A> x) Source #

Get hash code of the value

Parameters

param x

Value to get the hash code of

returns

The hash code of x

struct EqArr <A> Source #

Array equality

Methods

method bool Equals (Arr<A> x, Arr<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

method int GetHashCode (Arr<A> x) Source #

Get hash code of the value

Parameters

param x

Value to get the hash code of

returns

The hash code of x

struct EqArray <EqA, A> Source #

where EqA : Eq<A>

Array equality

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

method int GetHashCode (A[] x) Source #

Get hash code of the value

Parameters

param x

Value to get the hash code of

returns

The hash code of x

struct EqArray <A> Source #

Array equality

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

method int GetHashCode (A[] x) Source #

Get hash code of the value

Parameters

param x

Value to get the hash code of

returns

The hash code of x

struct EqBigInt Source #

Integer equality

Methods

method bool Equals (bigint a, bigint b) 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

method int GetHashCode (bigint x) Source #

Get hash code of the value

Parameters

param x

Value to get the hash code of

returns

The hash code of x

struct EqBool Source #

Boolean equality

Methods

method bool Equals (bool a, bool b) 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

method int GetHashCode (bool x) Source #

Get hash code of the value

Parameters

param x

Value to get the hash code of

returns

The hash code of x

struct EqChar Source #

Char equality

Methods

method bool Equals (char a, char b) 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

method int GetHashCode (char x) Source #

Get hash code of the value

Parameters

param x

Value to get the hash code of

returns

The hash code of x

struct EqCharOrdinalIgnoreCase Source #

Char equality (ordinal, ignore case)

Methods

method bool Equals (char a, char b) Source #

Equality test

Parameters

param a

The left hand side of the equality operation

param b

The right hand side of the equality operation

returns

True if a and b are equal

method int GetHashCode (char x) Source #

Get hash code of the value

Parameters

param x

Value to get the hash code of

returns

The hash code of x

struct EqCompositions <A> Source #

where A : Monoid<A>

Methods

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

method int GetHashCode (Compositions<A> x) Source #

struct EqDateTime Source #

DateTime equality

Methods

method bool Equals (DateTime a, DateTime b) 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

method int GetHashCode (DateTime x) Source #

Get hash code of the value

Parameters

param x

Value to get the hash code of

returns

The hash code of x

struct EqDecimal Source #

Floating point equality

Methods

method bool Equals (decimal a, decimal b) 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

method int GetHashCode (decimal x) Source #

Get hash code of the value

Parameters

param x

Value to get the hash code of

returns

The hash code of x

method Task<bool> EqualsAsync (decimal x, decimal y) Source #

method Task<int> GetHashCodeAsync (decimal x) Source #

struct EqDefault <A> Source #

Finds an appropriate Eq from the loaded assemblies, if one can't be found then it falls back to the standard .NET EqualityComparer.Default.Equals(a,b) method to provide equality testing.

Methods

method bool Equals (A a, A b) 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

method int GetHashCode (A x) Source #

Get hash code of the value

Parameters

param x

Value to get the hash code of

returns

The hash code of x

class EqDefault <A, B> Source #

This is a utility type for when two generic types are used, but it's not clear if they have the same underlying type. We'd like to do structural equality if they are, and return false if they're not.

Methods

method bool Equals (A a, B b) 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

struct EqDouble Source #

Floating point equality

Methods

method bool Equals (double a, double b) 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

method int GetHashCode (double x) Source #

Get hash code of the value

Parameters

param x

Value to get the hash code of

returns

The hash code of x

struct EqEdit <EqA, A> Source #

where EqA : Eq<A>

Equality instance for Patch Edit

Methods

method bool Equals (Edit<EqA, A> x, Edit<EqA, A> y) Source #

method int GetHashCode (Edit<EqA, A> x) Source #

struct EqEither <EqL, EqR, L, R> Source #

where EqL : Eq<L>
where EqR : Eq<R>

Either type hashing

Methods

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

Equality test

method int GetHashCode (Either<L, R> x) Source #

Get hash code of the value

Parameters

param x

Value to get the hash code of

returns

The hash code of x

method Task<int> GetHashCodeAsync (Either<L, R> x) Source #

Get hash code of the value

Parameters

param x

Value to get the hash code of

returns

The hash code of x

method Task<bool> EqualsAsync (Either<L, R> x, Either<L, R> y) Source #

Equality test

struct EqEither <L, R> Source #

Either type hashing

Methods

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

Equality test

method int GetHashCode (Either<L, R> x) Source #

Get hash code of the value

Parameters

param x

Value to get the hash code of

returns

The hash code of x

struct EqEnumerable <EQ, A> Source #

where EQ : Eq<A>

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

Methods

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

Equality check

method int GetHashCode (IEnumerable<A> x) Source #

Get hash code of the value

Parameters

param x

Value to get the hash code of

returns

The hash code of x

struct EqEnumerable <A> 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

Methods

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

Equality check

method int GetHashCode (IEnumerable<A> x) Source #

Get hash code of the value

Parameters

param x

Value to get the hash code of

returns

The hash code of x

struct EqException Source #

Methods

method int GetHashCode (Exception x) Source #

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

struct EqFloat Source #

Floating point equality

Methods

method bool Equals (float a, float b) 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

method int GetHashCode (float x) Source #

Get hash code of the value

Parameters

param x

Value to get the hash code of

returns

The hash code of x

struct EqGuid Source #

Guid equality

Methods

method bool Equals (Guid a, Guid b) 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

method int GetHashCode (Guid x) Source #

Get hash code of the value

Parameters

param x

Value to get the hash code of

returns

The hash code of x

struct EqHashSet <EQ, A> Source #

where EQ : Eq<A>

HashSet equality

Methods

method bool Equals (HashSet<A> x, HashSet<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

method int GetHashCode (HashSet<A> x) Source #

Get hash code of the value

Parameters

param x

Value to get the hash code of

returns

The hash code of x

struct EqHashSet <A> Source #

HashSet equality

Methods

method bool Equals (HashSet<A> x, HashSet<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

method int GetHashCode (HashSet<A> x) Source #

Get hash code of the value

Parameters

param x

Value to get the hash code of

returns

The hash code of x

struct EqIdentity <A> Source #

Identity equality

Methods

method bool Equals (Identity<A> a, Identity<A> b) 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

method int GetHashCode (Identity<A> x) Source #

Get hash code of the value

Parameters

param x

Value to get the hash code of

returns

The hash code of x

struct EqInt Source #

Integer equality

Methods

method bool Equals (int a, int b) 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

method int GetHashCode (int x) Source #

Get hash code of the value

Parameters

param x

Value to get the hash code of

returns

The hash code of x

struct EqIterable <EQ, A> Source #

where EQ : Eq<A>

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

Methods

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

Equality check

method int GetHashCode (Iterable<A> x) Source #

Get hash code of the value

Parameters

param x

Value to get the hash code of

returns

The hash code of x

struct EqIterable <A> 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

Methods

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

Equality check

method int GetHashCode (Iterable<A> x) Source #

Get hash code of the value

Parameters

param x

Value to get the hash code of

returns

The hash code of x

struct EqLong Source #

Integer equality

Methods

method bool Equals (long a, long b) 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

method int GetHashCode (long x) Source #

Get hash code of the value

Parameters

param x

Value to get the hash code of

returns

The hash code of x

struct EqLst <EQ, A> Source #

where EQ : Eq<A>

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

Methods

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

method int GetHashCode (Lst<A> x) Source #

Get hash code of the value

Parameters

param x

Value to get the hash code of

returns

The hash code of x

struct EqLst <A> 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

Methods

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

method int GetHashCode (Lst<A> x) Source #

Get hash code of the value

Parameters

param x

Value to get the hash code of

returns

The hash code of x

struct EqMap <K, V> Source #

Methods

method bool Equals (Map<K, V> x, Map<K, V> 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

method int GetHashCode (Map<K, V> x) Source #

Get the hash-code of the provided value

Parameters

returns

Hash code of x

struct EqMap <OrdK, K, V> Source #

where OrdK : Ord<K>

Methods

method bool Equals (Map<OrdK, K, V> x, Map<OrdK, K, V> 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

method int GetHashCode (Map<OrdK, K, V> x) Source #

Get the hash-code of the provided value

Parameters

returns

Hash code of x

struct EqOption <A> Source #

Option type equality

Methods

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

method int GetHashCode (Option<A> x) Source #

struct EqOptional <EQ, OPTION, OA, A> Source #

where EQ : Eq<A>
where OPTION : Optional<OA, A>

Compare the equality of any type in the Optional trait

Methods

method bool Equals (OA x, OA 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

method int GetHashCode (OA x) Source #

Get hash code of the value

Parameters

param x

Value to get the hash code of

returns

The hash code of x

method Task<bool> EqualsAsync (OA x, OA y) Source #

method Task<int> GetHashCodeAsync (OA x) Source #

struct EqOptional <OPTION, OA, A> Source #

where OPTION : Optional<OA, A>

Compare the equality of any type in the Optional trait

Methods

method bool Equals (OA x, OA 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

method int GetHashCode (OA x) Source #

Get hash code of the value

Parameters

param x

Value to get the hash code of

returns

The hash code of x

method Task<bool> EqualsAsync (OA x, OA y) Source #

method Task<int> GetHashCodeAsync (OA x) Source #

struct EqPatch <EqA, A> Source #

where EqA : Eq<A>

Equality instance for Patch

Methods

method bool Equals (Patch<EqA, A> x, Patch<EqA, A> y) Source #

method int GetHashCode (Patch<EqA, A> x) Source #

struct EqQue <EQ, A> Source #

where EQ : Eq<A>

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

Methods

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

method int GetHashCode (Que<A> x) Source #

Get hash code of the value

Parameters

param x

Value to get the hash code of

returns

The hash code of x

struct EqQue <A> 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

Methods

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

method int GetHashCode (Que<A> x) Source #

Get hash code of the value

Parameters

param x

Value to get the hash code of

returns

The hash code of x

struct EqRecord <A> Source #

where A : Record<A>

Equality class instance for all record types

Parameters

type A

Record type

Methods

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

method int GetHashCode (A x) Source #

struct EqSeq <EqA, A> Source #

where EqA : Eq<A>

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

Methods

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

Equality check

method int GetHashCode (Seq<A> x) Source #

Get hash code of the value

Parameters

param x

Value to get the hash code of

returns

The hash code of x

struct EqSeq <A> 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

Methods

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

Equality check

method int GetHashCode (Seq<A> x) Source #

Get hash code of the value

Parameters

param x

Value to get the hash code of

returns

The hash code of x

struct EqSet <EQ, A> Source #

where EQ : Eq<A>

Set equality

Methods

method bool Equals (Set<A> x, Set<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

method int GetHashCode (Set<A> x) Source #

Get hash code of the value

Parameters

param x

Value to get the hash code of

returns

The hash code of x

struct EqSet <A> Source #

Set equality

Methods

method bool Equals (Set<A> x, Set<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

method int GetHashCode (Set<A> x) Source #

Get hash code of the value

Parameters

param x

Value to get the hash code of

returns

The hash code of x

struct EqShort Source #

Integer equality

Methods

method bool Equals (short a, short b) 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

method int GetHashCode (short x) Source #

Get hash code of the value

Parameters

param x

Value to get the hash code of

returns

The hash code of x

struct EqStck <EQ, A> Source #

where EQ : Eq<A>

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

Methods

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

method int GetHashCode (Stck<A> x) Source #

Get hash code of the value

Parameters

param x

Value to get the hash code of

returns

The hash code of x

struct EqStck <A> 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

Methods

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

method int GetHashCode (Stck<A> x) Source #

Get hash code of the value

Parameters

param x

Value to get the hash code of

returns

The hash code of x

struct EqString Source #

String equality

Methods

method bool Equals (string a, string b) Source #

Equality test

Parameters

param a

The left hand side of the equality operation

param b

The right hand side of the equality operation

returns

True if a and b are equal

method int GetHashCode (string x) Source #

Get hash code of the value

Parameters

param x

Value to get the hash code of

returns

The hash code of x

struct EqStringInvariantCulture Source #

String equality (invariant culture)

Methods

method bool Equals (string a, string b) Source #

Equality test

Parameters

param a

The left hand side of the equality operation

param b

The right hand side of the equality operation

returns

True if a and b are equal

method int GetHashCode (string x) Source #

Get hash code of the value

Parameters

param x

Value to get the hash code of

returns

The hash code of x

struct EqStringInvariantCultureIgnoreCase Source #

String equality (invariant culture, ignore case)

Methods

method bool Equals (string a, string b) Source #

Equality test

Parameters

param a

The left hand side of the equality operation

param b

The right hand side of the equality operation

returns

True if a and b are equal

method int GetHashCode (string x) Source #

Get hash code of the value

Parameters

param x

Value to get the hash code of

returns

The hash code of x

struct EqStringOrdinalIgnoreCase Source #

String equality (ordinal, ignore case)

Methods

method bool Equals (string a, string b) Source #

Equality test

Parameters

param a

The left hand side of the equality operation

param b

The right hand side of the equality operation

returns

True if a and b are equal

method int GetHashCode (string x) Source #

Get hash code of the value

Parameters

param x

Value to get the hash code of

returns

The hash code of x

struct EqStringOrdinal Source #

String equality (ordinal)

Fields

field EqStringOrdinal Inst = default Source #

Methods

method bool Equals (string a, string b) Source #

Equality test

Parameters

param a

The left hand side of the equality operation

param b

The right hand side of the equality operation

returns

True if a and b are equal

method int GetHashCode (string x) Source #

Get hash code of the value

Parameters

param x

Value to get the hash code of

returns

The hash code of x

struct EqStringCurrentCultureIgnoreCase Source #

String equality (current culture, ignore case)

Methods

method bool Equals (string a, string b) Source #

Equality test

Parameters

param a

The left hand side of the equality operation

param b

The right hand side of the equality operation

returns

True if a and b are equal

method int GetHashCode (string x) Source #

Get hash code of the value

Parameters

param x

Value to get the hash code of

returns

The hash code of x

struct EqStringCurrentCulture Source #

String equality (current culture)

Fields

field EqStringCurrentCulture Inst = default Source #

Methods

method bool Equals (string a, string b) Source #

Equality test

Parameters

param a

The left hand side of the equality operation

param b

The right hand side of the equality operation

returns

True if a and b are equal

method int GetHashCode (string x) Source #

Get hash code of the value

Parameters

param x

Value to get the hash code of

returns

The hash code of x

struct EqTask <A> Source #

Methods

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

method int GetHashCode (Task<A> x) Source #

struct EqTrue <A> Source #

Always returns true for equality checks

Methods

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

method int GetHashCode (A x) Source #

struct EqTuple2 <EqA, EqB, A, B> Source #

where EqA : Eq<A>
where EqB : Eq<B>

Methods

method int GetHashCode ((A, B) pair) Source #

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

struct EqTypeInfo Source #

Methods

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

method int GetHashCode (TypeInfo x) Source #