Debian Codegraph @

lib/cml/util/fun-queue.sig

raw
1 (* fun-queue.sig
2 * 2004 Matthew Fluet ([email protected])
3 * Ported to MLton threads.
4 *)
5
6 signature FUN_QUEUE =
7 sig
8 type 'a t
9
10 val clean: 'a t * ('a -> bool) -> 'a t
11 val cleanAndDeque: 'a t * ('a -> bool) -> 'a option * 'a t
12 val cleanPrefix: 'a t * ('a -> bool) -> 'a t
13 val deque: 'a t -> ('a * 'a t) option
14 val empty: 'a t -> bool
15 val enque: 'a t * 'a -> 'a t
16 val enqueAndClean: 'a t * 'a * ('a -> bool) -> 'a t
17 val new: unit -> 'a t
18 val peek: 'a t -> 'a option
19 end