Equations
Instances For
@[inline]
Equations
Instances For
Equations
- Lean.NameMap.instEmptyCollection α = { emptyCollection := Lean.mkNameMap α }
Equations
- Lean.NameMap.instInhabited α = { default := ∅ }
Equations
- m.insert n a = Lean.RBMap.insert m n a
Instances For
Equations
- m.contains n = Lean.RBMap.contains m n
Instances For
Equations
- m.find? n = Lean.RBMap.find? m n
Instances For
instance
Lean.NameMap.instForInProdName
{α : Type}
{m : Type u_1 → Type u_2}
:
ForIn m (Lean.NameMap α) (Lean.Name × α)
Equations
- Lean.NameMap.instForInProdName = inferInstanceAs (ForIn m (Lean.RBMap Lean.Name α Lean.Name.quickCmp) (Lean.Name × α))
filter f m
returns the NameMap
consisting of all
"key
/val
"-pairs in m
where f key val
returns true
.
Equations
- Lean.NameMap.filter f m = Lean.RBMap.filter f m
Instances For
filterMap f m
filters an NameMap
and simultaneously modifies the filtered values.
It takes a function f : Name → α → Option β
and applies f name
to the value with key name
.
The resulting entries with non-none
value are collected to form the output NameMap
.
Equations
Instances For
Equations
Instances For
Instances For
Equations
- Lean.NameSet.instEmptyCollection = { emptyCollection := Lean.NameSet.empty }
Equations
- Lean.NameSet.instInhabited = { default := Lean.NameSet.empty }
Equations
- s.insert n = Lean.RBTree.insert s n
Instances For
Equations
- s.contains n = Lean.RBMap.contains s n
Instances For
Equations
- Lean.NameSet.instForInName = inferInstanceAs (ForIn m (Lean.RBTree Lean.Name Lean.Name.quickCmp) Lean.Name)
Equations
- Lean.NameSet.instAppend = { append := Lean.NameSet.append }
filter f s
returns the NameSet
consisting of all x
in s
where f x
returns true
.
Equations
- Lean.NameSet.filter f s = Lean.RBTree.filter f s
Instances For
Equations
- Lean.NameSSet.instEmptyCollection = { emptyCollection := Lean.NameSSet.empty }
Equations
- Lean.NameSSet.instInhabited = { default := Lean.NameSSet.empty }
Equations
- Lean.NameHashSet.instEmptyCollection = { emptyCollection := Lean.NameHashSet.empty }
Equations
- Lean.NameHashSet.instInhabited = { default := ∅ }
Equations
- s.insert n = Std.HashSet.insert s n
Instances For
Equations
- s.contains n = Std.HashSet.contains s n
Instances For
filter f s
returns the NameHashSet
consisting of all x
in s
where f x
returns true
.