package merlin-lib

  1. Overview
  2. Docs
Merlin's libraries

Install

Dune Dependency

Authors

Maintainers

Sources

merlin-4.16-501.tbz
sha256=da5bf309b040645c292ae4572cc6a0a700dbd2bcfc996ac13c8e5c3836c21e26
sha512=99eba17b2bdec5411d239093f4e8e11ada79b2b84ae88074a1b46e47eb836bbf8cb7836c472c22e7f9e68cff1b9ea6d9b9989b70055c3277edb4cddc4a86460c

doc/merlin-lib.ocaml_preprocess/Ocaml_preprocess/MenhirLib/InfiniteArray/index.html

Module MenhirLib.InfiniteArraySource

Sourcetype 'a t

This module implements infinite arrays. *

Sourceval make : 'a -> 'a t

make x creates an infinite array, where every slot contains x. *

Sourceval get : 'a t -> int -> 'a

get a i returns the element contained at offset i in the array a. Slots are numbered 0 and up. *

Sourceval set : 'a t -> int -> 'a -> unit

set a i x sets the element contained at offset i in the array a to x. Slots are numbered 0 and up. *

Sourceval extent : 'a t -> int

extent a is the length of an initial segment of the array a that is sufficiently large to contain all set operations ever performed. In other words, all elements beyond that segment have the default value.

Sourceval domain : 'a t -> 'a array

domain a is a fresh copy of an initial segment of the array a whose length is extent a.

OCaml

Innovation. Community. Security.