package containers
Install
Dune Dependency
Authors
Maintainers
Sources
md5=03b80e963186e91ddac62ef645bf7fb2
sha512=c8f434808be540c16926bf03d89f394d33fc2d092f963a7b6d412481229e0a96290f1ad7c7d522415115d35426b7aa0b3fda4b991ddc321dad279d402c9a0c0b
doc/containers.data/CCTrie/MakeArray/index.html
Module CCTrie.MakeArray
Source
Parameters
Signature
Add a binding to the trie (possibly erasing the previous one).
longest_prefix k m
finds the longest prefix of k
that leads to at least one path in m
(it does not mean that the prefix is bound to a value.
Example: if m
has keys "abc0" and "abcd", then longest_prefix "abc2" m
will return "abc".
Update the binding for the given key. The function is given None
if the key is absent, or Some v
if key
is bound to v
; if it returns None
the key is removed, otherwise it returns Some y
and key
becomes bound to y
.
Fold on key/value bindings. Will use WORD.of_list
to rebuild keys.
Map values, giving both key and value. Will use WORD.of_list
to rebuild keys.
More efficient version of fold
, that doesn't keep keys.
Merge two tries together. The function is used in case of conflicts, when a key belongs to both tries.
Conversions
Ranges
All bindings whose key is bigger or equal to the given key, in ascending order.