package baby
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
Fast sets and maps based on balanced binary search trees
Install
dune-project
Dependency
Authors
Maintainers
Sources
20260620.tar.gz
md5=594038f60703b23c3e3525bb6ef0ecdb
sha512=72afda3356f029900112973f8dea89a9a5758d5aaa4c3408b78de80ecf8eefe2d230ba679c0f71b5f90c72d3c3158c8f32b9c9e894ad8b18a8df88ec732455d5
doc/baby/Baby/W/Set/Make/argument-1-E/index.html
Parameter Make.E
The function compare decides a relation \leq over elements of type t.
The relation \leq must be a total preorder: that is,
- for all elements
x, y, it must be the case thatx \leq yory \leq xholds. - for all elements
x, y, z, it must be the case thatx \leq yandy \leq zimplyx \leq z;
Let us write x \equiv y when x \leq y and y \leq x hold. In that case, we say that x and y are equivalent.
Let us write x < y when x \leq y and \neg (y \leq x) hold.
compare must behave as follows:
- if
x \equiv yholds thencompare x ymust be zero; - if
x < yholds thencompare x ymust be negative; - if
y < xholds thencompare x ymust be positive.
If equivalence implies equality (that is, if for all elements x, y, x \equiv y implies x = y) then we say that the relation \leq is a total order.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>