Skip to main content Link Search Menu Expand Document (external link)

Hash overview

Added in v2.0.0


Table of contents


guards

isHash

Signature

export declare const isHash: (u: unknown) => u is Hash

Added in v2.0.0

hashing

array

Signature

export declare const array: <A>(arr: ReadonlyArray<A>) => number

Added in v2.0.0

cached

Signature

export declare const cached: { (self: object): (hash: number) => number; (self: object, hash: number): number }

Added in v2.0.0

combine

Signature

export declare const combine: (b: number) => (self: number) => number

Added in v2.0.0

hash

Signature

export declare const hash: <A>(self: A) => number

Added in v2.0.0

number

Signature

export declare const number: (n: number) => number

Added in v2.0.0

optimize

Signature

export declare const optimize: (n: number) => number

Added in v2.0.0

random

Signature

export declare const random: <A extends object>(self: A) => number

Added in v2.0.0

string

Signature

export declare const string: (str: string) => number

Added in v2.0.0

structure

Signature

export declare const structure: <A extends object>(o: A) => number

Added in v2.0.0

structureKeys

Signature

export declare const structureKeys: <A extends object>(o: A, keys: ReadonlyArray<keyof A>) => number

Added in v2.0.0

models

Hash (interface)

Signature

export interface Hash {
  [symbol](): number
}

Added in v2.0.0

symbols

symbol

Signature

export declare const symbol: typeof symbol

Added in v2.0.0