Releases: codex-semantics-library/patricia-tree
Releases · codex-semantics-library/patricia-tree
0.11.0
CHANGES:
- Add some
reflexive_equalandreflexive_comparefunctions - Add
min_binding_interfor maps,min_elt_interfor sets and their max counterparts - Add
differenceandsymmetric_differencefunction to maps (and adddifferencetoWithForeign) - Add
difffunctions to sets - Internal refactor.
0.10.0
CHANGES:
Main changes
- Added hash-consed nodes and functors to build hash-consed maps and sets.
- Added new functions
fold_on_nonequal_interandfold_on_nonequal_unionto maps. - Now support using negative keys, removed
zarithdependency. - Fixed some bugs
Detailed changes
Breaking changes:
- Renamed
MakeCustomtoMakeCustomMap, added new functorMakeCustomSet.
MakeCustomMapchanged to take a new argument to specify the'a valuetype. - Renamed
MakeCustomHeterogeneoustoMakeCustomHeterogeneousMap, added new functor
MakeCustomHeterogeneousSet. - Renamed
NODE_WITH_ID.get_idtoNODE_WITH_ID.to_int, this allows using
instancesNODE_WITH_IDdirectly as aKEY. - Renamed
VALUEtoHETEROGENEOUS_VALUE, added aVALUEmodule type (previously unnamed). - Renamed
min_binding,max_binding,pop_minimum,pop_maximum,min_elt
andmax_elttounsigned_min_binding,unsigned_max_binding,
pop_unsigned_minimum,pop_unsigned_maximum,unsigned_min_elt
andunsigned_max_eltrespectively, to clarify that these functions consider
negative numbers as larger than positive ones.
New features:
- Added new interface
MAP_WITH_VALUEwhich is the same asMAPbut with a custom
type'a valueinstead of just'a. - Added
HashconsedNode,HashconsedSetNodeas well as four functors to create
hash-consed heterogeneous/homogeneous maps/sets:MakeHashconsedMap,MakeHashconsedSet,
MakeHashconsedHeterogeneousMapandMakeHashconsedHeterogeneousSet. - Now support using negative keys. Trees are built using the bitwise representation
of integer, meaning they effectively use an unsigned order. Negative keys are
considered bigger than positive keys,0is the minimal number and-1the maximal one. - Added new functions
fold_on_nonequal_interandfold_on_nonequal_unionto maps.
Bug fixes:
- Fixed a bug where
NodeWithIdwasn't incrementing ids properly zarithis no longer a dependency, used GCC's__builtin_clzas a faster
method of finding an integer's highest bit.- Fixed a bug where
pop_minimumandpop_maximumcould throw a private exception
Dissappearedwhen usingWeakNode. - Fixed a possible assertion error when using
idempotent_subset_domain_forall2
withWeakNode. - Fix compilation warnings when compiling on ocaml 5.2.