Import Upstream version 20180207
[hcoop/debian/mlton.git] / lib / mlton / basic / string-map.sig
1 (* Copyright (C) 1999-2005 Henry Cejtin, Matthew Fluet, Suresh
2 * Jagannathan, and Stephen Weeks.
3 *
4 * MLton is released under a BSD-style license.
5 * See the file MLton-LICENSE for details.
6 *)
7
8 signature STRING_MAP =
9 sig
10 type 'a t
11
12 val clear: 'a t -> unit
13 val domain: 'a t -> string list
14 val foreach: 'a t * ('a -> unit) -> unit
15 val keepAll: 'a t * ('a -> bool) -> string list
16 val lookup: 'a t * string -> 'a
17 val new: (unit -> 'a) -> 'a t
18 end