1 (* Copyright (C) 2009 Matthew Fluet.
2 * Copyright (C) 1999-2006 Henry Cejtin, Matthew Fluet, Suresh
3 * Jagannathan, and Stephen Weeks.
4 * Copyright (C) 1997-2000 NEC Research Institute.
6 * MLton is released under a BSD-style license.
7 * See the file MLton-LICENSE for details.
10 signature CASES_STRUCTS =
15 val conEquals: con * con -> bool
16 val wordEquals: word * word -> bool
24 Char of (char * 'a) vector
25 | Con of (con * 'a) vector
26 | Int of (IntInf.t * 'a) vector
27 | Word of (word * 'a) vector
29 val equals: 'a t * 'a t * ('a * 'a -> bool) -> bool
30 val fold: 'a t * 'b * ('a * 'b -> 'b) -> 'b
31 val forall: 'a t * ('a -> bool) -> bool
32 val foreach: 'a t * ('a -> unit) -> unit
33 val foreach': 'a t * ('a -> unit) * (con -> unit) -> unit
35 val isEmpty: 'a t -> bool
36 val length: 'a t -> int
37 val map: 'a t * ('a -> 'b) -> 'b t