File: fqueue.mli

package info (click to toggle)
sks 1.1.6-14
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 2,296 kB
  • sloc: ml: 15,228; ansic: 1,069; sh: 358; makefile: 347
file content (12 lines) | stat: -rw-r--r-- 346 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
exception Empty
type 'a t = { inlist : 'a list; outlist : 'a list; length : int; }
val empty : 'a t
val push : 'a -> 'a t -> 'a t
val enq : 'a -> 'a t -> 'a t
val top : 'a t -> 'a
val pop : 'a t -> 'a * 'a t
val discard : 'a t -> 'a t
val deq : 'a t -> 'a * 'a t
val to_list : 'a t -> 'a list
val length : 'a t -> int
val is_empty : 'a t -> bool