Constructs a trie with a given value and set of children.
trie(x, i, j) == trie(x, lib::subrange(i, j))