package batteries
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
A community-maintained standard library extension
Install
dune-project
Dependency
Authors
Maintainers
Sources
v3.2.0.tar.gz
sha256=00f34b9aed4e47f314425b2ca9ceac206f112095a17ea9a7ffa6dac8cfccc492
md5=066051f9a210277710c54ad57c3b9568
doc/batteries.unthreaded/BatAvlTree/index.html
Module BatAvlTree
Internals of ISet and IMap, usable as generic tree library
val empty : 'a treeval is_empty : 'a tree -> boolcreate l v r is similar to make_tree l v r but performs no rebalancing; in other words, you should use this only when you know that l and r are already balanced.
val height : 'a tree -> intval root : 'a tree -> 'aval singleton_tree : 'a -> 'a treeval iter : ('a -> unit) -> 'a tree -> unitval fold : ('a -> 'b -> 'b) -> 'a tree -> 'b -> 'bval check : 'a tree -> boolCheck that the tree is balanced according to the AVL tree rules. An AVL tree is balanced when for every node the height of the subnodes differs by at most 1.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>