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

The SML of NJ Library
The `HashString` structure

The `HashString` structure provides hashing functions for strings and substrings. It is currently implemented as an alias for the same functions from the `FNVHash` structure.

## Synopsis

    structure HashString

## Interface

    val hashString  : string -> word

    val hashSubstring : substring -> word

## Description

`val hashString : string -> word`

  `hashString s` returns a hash code for the string `s`.

`val hashSubstring : substring -> word`

  `hashSubstring s` returns a hash code for the substring `ss`.

## See Also

`FNVHash`, The Util Library

SML/NJ Version 110.99.9 (November 4, 2025)
Last updated 2025-11-04 15:48:25 UTC