Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 15 lines (13 sloc) 0.52 kb
c6083b48 »
2009-12-21 Added Ternary module: finite maps over strings using TSTs.
1 (** Finite map over strings using ternary search trees (TSTs). *)
2
3 type 'a t
4 val empty : 'a t
5 val length : 'a t -> int
6 val is_empty : 'a t -> bool
7 val find : string -> 'a t -> 'a
8
9 (** [find_prefixes k t] returns all the values whose keys are a prefix of [k]
10 * (including [k] itself), in longest to shortest order (i.e., the value for
11 * [k] would come first). *)
12 val find_prefixes : string -> 'a t -> 'a list
13 val mem : string -> 'a t -> bool
14 val add : string -> 'a -> 'a t -> 'a t
15 val remove : string -> 'a t -> 'a t
Something went wrong with that request. Please try again.