package dune
Fast, portable and opinionated build system
Install
Dune Dependency
Authors
Maintainers
Sources
dune-build-info-1.11.4.tbz
sha256=77cb5f483221b266ded2b85fc84173ae0089a25134a086be922e82c131456ce6
sha512=02f00fd872aa49b832fc8c1e928409f23c79ddf84a53009a58875f222cca36fbb92c905e12c539caec9cbad723f195a8aa24218382dca35a903b3f52b11f06f2
doc/dune._stdune/Stdune/Table/index.html
Module Stdune.Table
Hashtable with a simple polymorphic type, but without the polymorphic equality.
This module re-wraps the hashtable implementation provided by Hashtbl.Make
under a different interface: we just have a single type ('k, 'v) t
, similar to a polymorphic hashtable.
This means that if you want a hash table generic over the type of keys, you don't have to put your type inside a functor.
Unlike the polymorphich hashtable (('k, 'v) Hashtbl.t
), this does not use polymorphic hash and polymorphic equality, so this module does respect abstraction boundaries.
module type Key = sig ... end
val find : ('k, 'v) t -> 'k -> 'v option
val set : ('k, 'v) t -> 'k -> 'v -> unit
val add_exn : ('k, 'v) t -> 'k -> 'v -> unit
val clear : ('k, 'v) t -> unit
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>