package lrgrep
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=e53de12e4c5cbe6bca00643593266b4f9fa2e3f6a138195eeff7a4329f5c1c75
sha512=7fd7c4d11506fea7cc11c9bbf5aea9142d905643553c0c90e1bb16b794106b0c14a266acf89ae91b6929008dc0ba6515f788642873e2e4ba6c3d49bd45d25127
doc/fix/Fix/Indexing/Vector/index.html
Module Indexing.VectorSource
The submodule Vector allows safely manipulating indices into a vector.
length is analogous to Array.length, but returns a cardinal instead of an ordinary integer.
get is Array.get, but expects an index instead of an ordinary integer. This guarantees that the index is within bounds.
set is Array.set, but expects an index instead of an ordinary integer. This guarantees that the index is within bounds.
set_cons t i x is short for set t i (x :: get t i).
make is analogous to Array.make. Invoking make n x fixes the cardinal n.
make' n f is roughly analogous to make n (f()), but removes the need to exhibit a value of type 'a when n is zero. The function call f() takes place only if n is greater than zero. It takes place at most once. Invoking make' n f fixes the cardinal n.
init is analogous to Array.init. Invoking init n f fixes the cardinal n.