[Home] Module Microsoft.FSharp.Collections.ComparisonIdentity


Common notions of comparison identity used with sorted data structures.

Values

ValueDescription
val FromFunction : ('key -> 'key -> int) -> IComparer<'key>
Compare using the given comparer comparer function
val Structural<'key> : StructuralComparer<'key>
Structural comparison. Compare using LanguagePrimitives.GenericComparison.

Deprecated Values

ValueDescription
[<Obsolete ("This function has been renamed to ComparisonIdentity.FromFunction")>]
val Custom : ('key -> 'key -> int) -> IComparer<'key>

Note: This function has been renamed to ComparisonIdentity.FromFunction

[<Obsolete
  ("This function is no longer supported. Consider creating an explicit implementation of IComparer using an object expression")>]
val ViaIComparable<'key> : IComparer<'key>

Note: This function is no longer supported. Consider creating an explicit implementation of IComparer using an object expression

Compare using any implementation of System.IComparable interfaces. This differs from structural comparison because arrays are not compared structurally, and many optimizations are not applied.

See Also

Microsoft.FSharp.Collections


Documentation for assembly FSharp.Core, version 1.9.4.19, generated using F# version 1.9.4.19