package lrgrep
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=84a1874d0c063da371e19c84243aac7c40bfcb9aaf204251e0eb0d1f077f2cde
sha512=5a16ff42a196fd741bc64a1bdd45b4dca0098633e73aa665829a44625ec15382891c3643fa210dbe3704336eab095d4024e093e37ae5313810f6754de6119d55
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.