package grenier
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
A collection of various algorithms in OCaml
Install
dune-project
Dependency
Authors
Maintainers
Sources
grenier-0.16.tbz
sha256=8fd22abf9f4589c206008654fa9eebb1cf4a58737ebb34138c6709520f36b75f
sha512=f60315eccfecaec9cb4c3bd020ef6f94d05ed6b13038109b904ead6e4e5662f4ed95415855b3c763293b762b696f1962045393fd592742d54cf5607d0ef2961a
doc/grenier.orderme/Order_managed_interval/index.html
Module Order_managed_intervalSource
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.
Compare two elements. O(1)
Memory management
When you know you are not going to use an element any longer, forget it to release memory. It makes operations slightly faster to not have to wait for the GC to release elements.
After calling forget, an element should not be used. You can check if it is the case with is_valid.
Algorithm due to: Two Simplified Algorithms for Maintaining Order in a List Bender et al., 2002
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page