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

The SML of NJ Library
The `HashConsString` structure

The `HashConsString` structure embeds the `string` type as a hash-consed object. It is implemented using the `HashConsGroundFn` functor.

## Synopsis

    structure HashConsString

## Interface

    type hash_key = string
    type obj = hash_key HashCons.obj

    val mk : hash_key -> obj

## Description

`type hash_key = string`

  The ground type being hashed.

`type obj = hash_key HashCons.obj`

  The type of hash-consed strings.

`val mk : hash_key -> obj`

  `mk s` converts the string `s` to a hash-consed object.

## See Also

`HashCons`, The HashCons Library

SML/NJ Version 110.99 (December 24, 2020)
Last updated 2020-05-20 00:54:25 UTC