package tezos-protocol-alpha
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=ad9e08819871c75ba6f4530b125f7d157799398e4d77a1e6bfea9d91ff37ff55
sha512=c5dc4d40cc09bc6980fbbdb5c2e105bf4252cf9cfcb2b49660b0ebe4dc789f6709ec3b3bf2f87d81580d3eed9521eeb1c960f24d9b14eb0285aaba1f84d10a9b
doc/tezos-protocol-alpha.raw/Tezos_raw_protocol_alpha/Bounded_history_repr/Make/index.html
Module Bounded_history_repr.MakeSource
Parameters
Signature
empty ~capacity returns a new table whose maximum capacity is given.
Encoding for values of type t
Pretty-printer for values of type t
find key t returns Some value if there exists some value associated to key in the table, and None otherwise.
remember key value t inserts a new entry (key |-> value) in t.
If key already exists in t, its associated binding value' should be equal to value. In this case, t is returned unchanged. Otherwise, an error Key_bound_to_different_value is returned.
If key is not already present in t, the new binding (key |-> value) is inserted in t. If the number of elements would exceed t's capacity after the insertion of the new binding, the oldest binding is removed from t.
The structure t is returned unchanged if its capacity is negative or null.