package grenier
A collection of various algorithms in OCaml
Install
Dune Dependency
Authors
Maintainers
Sources
grenier-0.15.tbz
sha256=dec7f84b9e93d5825f10c7dea84d5a74d7365ede45664ae63c26b5e8045c1c44
sha512=b8aa1569c2e24b89674d1b34de34cd1798896bb6a53aa5a1287f68cee880125e6b687f66ad73da9069a01cc3ece1f0684f48328b099d43529bff736b772c8fd8
doc/grenier.orderme/Order_list/index.html
Module Order_list
Source
Basic ordering operations
An element of an ordering.
after t
inserts a new element to the ordering, greater than t
but less than all existing elements greater than t
.
O(1) amortized.
before t
inserts a new element to the ordering, less than t
but greater than all existing elements less than t
.
O(1) amortized.
Memory management
Memory of every element is retained. When you know you are not going to use an element any longer, forget
it to release memory. O(1).
After calling forget
, an element should not be used. You can check if it is the case with is_valid
.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page