package ocp-index
Install
    
    dune-project
 Dependency
Authors
Maintainers
Sources
md5=7224ae09fd740ce7ab7b059666e08e4b
    
    
  sha512=92e6c32ae1b953ae0928e48e09dc3238a43b87165130ec85f9e73c71ea6ce38f51bc3e39768bae0eb76d06a945767a4dcbabd3a111ccf45f37b182aa16b304ad
    
    
  doc/ocp-index.lib/IndexTrie/index.html
Module IndexTrieSource
This module defines a generic data structure: Lazy tries based on lists
Type of tries mapping from 'a list to 'b
Create a new trie with the given components
Returns true if there is a value associated with the given path
Returns all values associated with the given path, most recent first.
Associates a value with the given path, or replaces if there was already one
The same but taking a lazy value
Associates a value with the given path, keeping previous bindings
The same but taking a lazy value
Removes all associations to a given key from the trie. Warning: doesn't cleanup branches that don't point to anything anymore
map_subtree tree path f applies f on value and children of the node found at path in tree, and bind the returned node back at that position in the tree
iters over all the bindings in the trie, top-down
folds over all bindings of the trie, bottom-up
same as fold, but the list of bindings at a given path is given at once
sub t p returns the sub-trie associated with the path p in the trie t. If p is not a valid path of t, it returns an empty trie.
filter f t returns t with all subtrees for which f key = false pruned
graft tree path subtree grafts the children of subtree in tree at path, replacing the whole subtree
Lazy version of graft
Merges two tries, accepting an optional function to resolve value conflicts. The default function pushes right-hand values on top of left-hand ones