std/atom▲toc

This module provides a perfect hash for strings.

These atomstd/atom/atom: Vs can be compared very efficiently. If you compare only seldomly, a straight string compare will probably be faster.

type atomstd/atom/atom: V

An atom is an abstract representation of a string that can be compared quickly

Compare if two atoms are not equal.

Compare two atoms for equality

An atom corresponding to the empty string

fun matcher( xs : liststd/core/list: V -> V<stringstd/core/string: V>, ignoreCase : ?boolstd/core/bool: V ) : ((s : stringstd/core/string: V) -> boolstd/core/bool: V)

Create an efficient string matcher which given a list of strings returns a matching function.

fun matcher( xs : vectorstd/core/vector: V -> V<stringstd/core/string: V>, ignoreCase : ?boolstd/core/bool: V ) : ((s : stringstd/core/string: V) -> boolstd/core/bool: V)

Create an efficient string matcher which given a vector of strings returns a matching function.