File: fqueue.mli

package info (click to toggle)
sks 1.1.6%2Bgit20210302.c3ba6d5a-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 136,280 kB
  • sloc: ml: 15,187; ansic: 1,061; sh: 366; makefile: 331; python: 25
file content (12 lines) | stat: -rw-r--r-- 346 bytes parent folder | download | duplicates (8)
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