Guest User

sirStack.mli

a guest
Oct 19th, 2012
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
OCaml 0.32 KB | None | 0 0
  1. module type Stack =
  2. sig
  3.   type 'a t
  4.   exception Empty
  5.   val create : unit -> 'a t
  6.   val push : 'a -> 'a t -> unit
  7.   val pop : 'a t -> 'a
  8.   val top : 'a t -> 'a
  9.   val clear : 'a t -> unit
  10.   val copy : 'a t -> 'a t
  11.   val is_empty : 'a t -> bool
  12.   val length : 'a t -> int
  13.   val iter : ('a -> unit) -> 'a t -> unit
  14. end;;
Advertisement
Add Comment
Please, Sign In to add comment