@[inline]
def Lean.Meta.DiscrTree.Trie.foldValues {σ : Type u_1} {α : Type} (f : σ → α → σ) (init : σ) (t : Trie α) :
σ
Fold the values stored in a Trie.
Instances For
The number of values stored in a Trie.
@[inline]
Returns the values stored at the current trie node.
Equivalent to t.asNode.1.
Instances For
@[inline]
Checks whether a trie node is empty (no values and no children).
This is only a check for actual trie emptiness (t.size = 0) if all operations maintain the
invariant that no trie node has an empty child node.
Instances For
@[inline]
def Lean.Meta.DiscrTree.foldValues {σ : Type u_1} {α : Type} (f : σ → α → σ) (init : σ) (t : DiscrTree α) :
σ
Fold over the values stored in a DiscrTree.
Instances For
@[inline]
Extract the values stored in a DiscrTree.
Instances For
@[inline]
Get the number of values stored in a DiscrTree. O(n) in the size of the tree.