@[inline]
def
Lean.Meta.DiscrTree.Trie.foldValues
{σ : Type u_1}
{α : Type}
(f : σ → α → σ)
(init : σ)
(t : Trie α)
:
σ
Fold the values stored in a Trie.
Equations
Instances For
The number of values stored in a Trie.
@[inline]
def
Lean.Meta.DiscrTree.foldValues
{σ : Type u_1}
{α : Type}
(f : σ → α → σ)
(init : σ)
(t : DiscrTree α)
:
σ
Fold over the values stored in a DiscrTree.
Equations
Instances For
@[inline]
Extract the values stored in a DiscrTree.
Equations
Instances For
@[inline]
Get the number of values stored in a DiscrTree. O(n) in the size of the tree.