package orsetto
Module String_basis.Vector
The implementation module for the underlying vector.
type element = String.tmodule Basis : sig ... endSignture of vector basis with type erased.
module Element : sig ... endSignature of totally ordered vector element type.
type t = String.t arrayval nil : tData structures use this distinguished empty vector.
val empty : t -> boolData structures use empty v to test whether v contains any elements.
val first : indexData structures use first as the index of the first element.
Data strutures use last v to get the index of the last element of v. This function may raise Invalid_argument only if v is empty.
Data structures use project v i to get the element in v at index i. Data structures may raise Invalid_argument only if i is not a valid index of v.
Data structures use of_seq s to make a vector with elements consumed from s, with the head of s at the first index, and the element immediately preceding the end of s at the last index.