package orsetto
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha512=e260412b2dd0f98cfe3dc7ed5c31a694eb31c93cd207c51fa12675b790234ee0ad3bf07d9be17a4dc266fedfe55b14c967cad7bc0c9414063eef8afd59f3d0d1
doc/orsetto.cf/Cf_bsearch_data/Table/Of_int/index.html
Module Table.Of_int
A distinguished instance of tables of int type elements.
val nil : tA distinguished empty table.
val empty : t -> boolUse empty t to test if t is an empty table.
Use of_seq s to construct a table from the sequence of vector elements s.
val find : (int, 'r) Cf_bsearch.ret -> int -> t -> 'rUse find ret key tab to search for key in tab and use the binary search return adapter ret to construct the result.
val member : int -> t -> boolUse member key tab to check if key is to be found in tab.
val search : int -> t -> int optionUse search key tab to return Some index for key if it can be found in tab and None otherwise.
val require : int -> t -> intUse require key tab to return index for key if it can be found in tab. Raises Not_found if key is not in tab.
Use to_seq tab to make a sequence of the elements in the underlying vector. These are presented in binary search order, not monotonically increasing order.
module Unsafe : sig ... endUnsafe interfaces depend on the internal structure of tables.