Module

Data.Unique

Package
purescript-unique
Repository
nsaunders/purescript-unique

#Unique Source

data Unique

An abstract unique object. Objects of type Unique may be compared for equality and ordering and hashed into Int.

Instances

#hashUnique Source

hashUnique :: Unique -> Int

Hashes a Unique into an Int. Two Uniques may hash to the same value, although in practice this is unlikely. The Int returned makes a good hash key.

#newUnique Source

newUnique :: Effect Unique

Creates a new object of type Unique. The value returned will not compare equal to any other value of type Unique returned by previous calls to newUnique. There is no limit on the number of times newUnique may be called.

Modules
Data.Unique