package hc
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
val create : int -> 'a t
create n
creates a new, empty cache, with initial size n
. For best results, n
should be on the order of the expected number of elements that will be in the cache. The cache must grow as needed, so n
is just an initial guess.
val clear : 'a t -> unit
Empty a cache.
find cache v
returns the current binding of v
in cache
, or must raise Not_found
if v
is not in cache
.
val length : 'a t -> int
length cache
returns the number of bindings in cache
.
val stats : 'a t -> Hashtbl.statistics
stats cache
return statistics about the cache cache
.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>