HashIdentity.FromFunctions<'T> Function (F#)
Hash using the given hashing and equality functions.
Namespace/Module Path: Microsoft.FSharp.Collections.HashIdentity
Assembly: FSharp.Core (in FSharp.Core.dll)
// Signature:
FromFunctions : ('T -> int) -> ('T -> 'T -> bool) -> IEqualityComparer<'T>
// Usage:
FromFunctions hasher equality
Parameters
hasher
Type: 'T -> intA function to generate a hash code from a value.
equality
Type: 'T -> 'T -> boolA function to test equality of two values.
Return Value
An object that implements IEqualityComparer using the supplied functions.
Platforms
Windows 7, Windows Vista SP2, Windows XP SP3, Windows XP x64 SP2, Windows Server 2008 R2, Windows Server 2008 SP2, Windows Server 2003 SP2
Version Information
F# Runtime
Supported in: 2.0, 4.0
Silverlight
Supported in: 3