Header menu logo TDesu.FSharp

Hash Module

Pipeline-friendly hash combining using System.HashCode.

Functions and values

Function or value Description

Hash.combine2 a b

Full Usage: Hash.combine2 a b

Parameters:
    a : 'a
    b : 'b

Returns: int
Modifiers: inline
Type parameters: 'a, 'b

Combines two values into a single hash code. The first value to combine. The second value to combine.

a : 'a
b : 'b
Returns: int

Hash.combine3 a b c

Full Usage: Hash.combine3 a b c

Parameters:
    a : 'a
    b : 'b
    c : 'c

Returns: int
Modifiers: inline
Type parameters: 'a, 'b, 'c

Combines three values into a single hash code. The first value to combine. The second value to combine. The third value to combine.

a : 'a
b : 'b
c : 'c
Returns: int

Hash.combine4 a b c d

Full Usage: Hash.combine4 a b c d

Parameters:
    a : 'a
    b : 'b
    c : 'c
    d : 'd

Returns: int
Modifiers: inline
Type parameters: 'a, 'b, 'c, 'd

Combines four values into a single hash code. The first value to combine. The second value to combine. The third value to combine. The fourth value to combine.

a : 'a
b : 'b
c : 'c
d : 'd
Returns: int

Hash.ofArray xs

Full Usage: Hash.ofArray xs

Parameters:
    xs : 'a[]

Returns: int
Modifiers: inline
Type parameters: 'a

Hashes all elements of an array. The array of elements to hash.

xs : 'a[]
Returns: int

Hash.ofList xs

Full Usage: Hash.ofList xs

Parameters:
    xs : 'a list

Returns: int
Modifiers: inline
Type parameters: 'a

Hashes all elements of a list. The list of elements to hash.

xs : 'a list
Returns: int

Hash.ofSeq xs

Full Usage: Hash.ofSeq xs

Parameters:
    xs : 'a seq

Returns: int

Hashes all elements of a sequence. Useful for using collections as dictionary keys. The sequence of elements to hash.

xs : 'a seq
Returns: int

Type something to start searching.