package octez-l2-libs
Generic module type for maps to be persisted on disk.
val path : path
Path in the irmin tree.
val mem :
[> `Read ] store ->
key ->
bool Tezos_base.TzPervasives.tzresult Lwt.t
mem store key
checks whether there is a binding of the map for key key
in store
.
val get :
[> `Read ] store ->
key ->
value Tezos_base.TzPervasives.tzresult Lwt.t
get store key
retrieves from store
the value associated with key
in the map. It raises an error if such a value does not exist.
val find :
[> `Read ] store ->
key ->
value option Tezos_base.TzPervasives.tzresult Lwt.t
find store key
retrieves from store
the value associated with key
in the map. If the value exists it is returned as an optional value. Otherwise, None
is returned.
val find_with_default :
[> `Read ] store ->
key ->
on_default:(unit -> value) ->
value Tezos_base.TzPervasives.tzresult Lwt.t
find_with_default ~on_default store key
retrieves from store
the value associated with key
in the map. If the value exists it is returned as is. Otherwise, on_default
is returned.
val add :
[> `Write ] store ->
key ->
value ->
unit Tezos_base.TzPervasives.tzresult Lwt.t
add store key value
adds a binding from key
to value
to the map, and persists it to disk.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>