package lrgrep

  1. Overview
  2. Docs
Detailed error messages for Menhir-generated parsers

Install

dune-project
 Dependency

Authors

Maintainers

Sources

lrgrep-0.9.tbz
sha256=e53de12e4c5cbe6bca00643593266b4f9fa2e3f6a138195eeff7a4329f5c1c75
sha512=7fd7c4d11506fea7cc11c9bbf5aea9142d905643553c0c90e1bb16b794106b0c14a266acf89ae91b6929008dc0ba6515f788642873e2e4ba6c3d49bd45d25127

doc/utils/Utils/IndexBuffer/Dyn/index.html

Module IndexBuffer.DynSource

Sourcetype ('n, 'a) t

Type representing a dynamic array indexed by indices.

Sourceval make : 'a -> ('n, 'a) t

make default creates a new dynamic array with the given default value.

  • parameter default

    The default value for indices not yet set.

Sourceval get : ('n, 'a) t -> 'n Fix.Indexing.index -> 'a

get t i returns the value at index i in array t.

Sourceval set : ('n, 'a) t -> 'n Fix.Indexing.index -> 'a -> unit

set t i x sets the value at index i in array t to x.

Sourceval contents : ('n, 'a) t -> 'n Fix.Indexing.cardinal -> ('n, 'a) Fix.Indexing.vector

Extract a static vector from a dynamic one once the cardinal is known.