package containers
Install
Dune Dependency
Authors
Maintainers
Sources
md5=d84e09c5d0abc501aa17cd502e31a038
sha512=8b832f4ada6035e80d81be0cfb7bdffb695ec67d465ed6097a144019e2b8a8f909095e78019c3da2d8181cc3cd730cd48f7519e87d3162442562103b7f36aabb
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.