-
Incompatible changes:
- The signature
CORE
has changed. - The signature of the functor
Baby.Make
has changed.
- The signature
-
Documentation: in the signature
OrderedType
, clarify the specification of the functioncompare
; this function decides a total preorder≤
. -
Documentation: in the preamble, clarify that, most of the time, we assume that
≤
is total order; if an operation must be understood in the more general case where≤
is a total preorder, then this is explicitly indicated. -
Documentation: update the documentation of
find
andfind_opt
in accordance with the previous point. -
Bug: due to a copy-paste mistake, the submodule
Baby.H.Set.Int
mistakenly offered weight-balanced trees instead of height-balanced trees. Of course, this was not observable, except perhaps in terms of performance. Fixed.
-
Initial implementation and release. The library offers both height-balanced and weight-balanced binary search trees. Only the
Set
API is supported. -
The library includes two specialized implementations of sets of integers,
Baby.W.Set.Int
andBaby.H.Set.Int
. With the vanilla OCaml compiler, they seem about 20% faster thanBaby.W.Set.Make(Int)
andBaby.H.Set.Make(Int)
. With theflambda
OCaml compiler, there is no difference in performance, as this compiler is capable of inlining functor applications.