The `Trie` struct looks pretty fundamental in the `Gen` codebase https://github.com/probcomp/Gen.jl/blob/master/src/trie.jl . From reading the sources its a tree-structure, but maybe it should be documented?