Hash

GitHub   Edit on GitHub

Utilities for hashing any value.

Added in 0.1.0 No other changes yet.
1
import Hash from "hash"

Values

Functions for hashing.

Hash.hash

Added in 0.1.0 No other changes yet.
1
hash : a -> Number

A generic hash function that produces an integer from any value. If a == b then Hash.hash(a) == Hash.hash(b).

Parameters:

param type description
anything a The value to hash

Returns:

type description
Number A hash for the given value
This is a notification!