Equations
Instances For
- leafWff {α : Type u} {β : α → Type v} {cmp : α → α → Ordering} : WellFormed cmp leaf
- insertWff {α : Type u} {β : α → Type v} {cmp : α → α → Ordering} {n n' : RBNode α β} {k : α} {v : β k} : WellFormed cmp n → n' = insert cmp n k v → WellFormed cmp n'
- eraseWff {α : Type u} {β : α → Type v} {cmp : α → α → Ordering} {n n' : RBNode α β} {k : α} : WellFormed cmp n → n' = erase cmp k n → WellFormed cmp n'
Instances For
@[specialize #[]]
def
Lean.RBNode.mapM
{α : Type v}
{β γ : α → Type v}
{M : Type v → Type v}
[Applicative M]
(f : (a : α) → β a → M (γ a))
:
Equations
Instances For
instance
Lean.RBNode.instEmptyCollection
{α : Type u}
{β : α → Type v}
:
EmptyCollection (RBNode α β)
Equations
instance
Lean.instEmptyCollectionRBMap
(α : Type u)
(β : Type v)
(cmp : α → α → Ordering)
:
EmptyCollection (RBMap α β cmp)
Equations
def
Lean.RBMap.filterMap
{α : Type u}
{β : Type v}
{cmp : α → α → Ordering}
{γ : Type u_1}
(f : α → β → Option γ)
(m : RBMap α β cmp)
:
RBMap α γ cmp
filterMap f m
filters an RBMap
and simultaneously modifies the filtered values.
It takes a function f : α → β → Option γ
and applies f k v
to the value with key k
.
The resulting entries with non-none
value are collected to form the output RBMap
.