mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-06 03:05:28 -05:00
add invariant in CCDeque.ml
This commit is contained in:
parent
1b8d9ca9a6
commit
035aac9a72
1 changed files with 3 additions and 1 deletions
|
|
@ -17,7 +17,9 @@ type 'a node = {
|
|||
(** Linked list of cells.
|
||||
|
||||
invariant: only the first and last cells are allowed to
|
||||
be anything but [Three] (all the intermediate ones are [Three]) *)
|
||||
be anything but [Three] (all the intermediate ones are [Three])
|
||||
The first and last cell are [Zero] if and only if the
|
||||
deque is empty *)
|
||||
|
||||
type 'a t = {
|
||||
mutable cur : 'a node;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue