package batteries
A community-maintained standard library extension
Install
Dune Dependency
Authors
Maintainers
Sources
v3.6.0.tar.gz
md5=1bcb27dfbd130eb057561196ef851649
sha512=2a56611b09a5f1cba6457539f8b6bc87a5f2a5454b36cdb39f6e0d6a5dac6db179aab1ba87c74dd49cc41df31a9a96feb349028ea41df7371ecb47f4d9dfafc4
doc/batteries.unthreaded/BatAvlTree/index.html
Module BatAvlTree
Internals of ISet and IMap, usable as generic tree library
val empty : 'a tree
val is_empty : 'a tree -> bool
create 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 -> int
val root : 'a tree -> 'a
val singleton_tree : 'a -> 'a tree
val iter : ('a -> unit) -> 'a tree -> unit
val fold : ('a -> 'b -> 'b) -> 'a tree -> 'b -> 'b
val check : 'a tree -> bool
Check 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)"
>