The HashConsWord structure
Author: John Reppy
Keywords: Standard ML, SML, SML/NJ Library

The SML of NJ Library
The `HashConsWord` structure

The `HashConsWord` structure embeds the `word` type as a hash-consed object. It is implemented by directly using the value as the tag and hash key (i.e., no hash table).

## Synopsis

    structure HashConsWord

## Interface

    type hash_key = word
    type obj = hash_key HashCons.obj

    val mk : hash_key -> obj

## Description

`type hash_key = word`

  The ground type being hashed.

`type obj = hash_key HashCons.obj`

  The type of hash-consed words.

`val mk : hash_key -> obj`

  `mk w` converts the word `w` to a hash-consed object.

## See Also

`HashCons`, The HashCons Library

SML/NJ Version 110.99.6.1 (October 25, 2024)
Last updated 2024-10-25 16:47:18 UTC