def
Lean.HashSetBucket.update
{α : Type u}
(data : Lean.HashSetBucket α)
(i : USize)
(d : List α)
(h : USize.toNat i < Array.size data.val)
:
Instances For
- size : Nat
- buckets : Lean.HashSetBucket α
Instances For
Instances For
@[inline]
def
Lean.HashSetImp.reinsertAux
{α : Type u}
(hashFn : α → UInt64)
(data : Lean.HashSetBucket α)
(a : α)
:
Instances For
@[inline]
def
Lean.HashSetImp.foldBucketsM
{α : Type u}
{δ : Type w}
{m : Type w → Type w}
[Monad m]
(data : Lean.HashSetBucket α)
(d : δ)
(f : δ → α → m δ)
:
m δ
Instances For
@[inline]
def
Lean.HashSetImp.foldBuckets
{α : Type u}
{δ : Type w}
(data : Lean.HashSetBucket α)
(d : δ)
(f : δ → α → δ)
:
δ
Instances For
@[inline]
def
Lean.HashSetImp.foldM
{α : Type u}
{δ : Type w}
{m : Type w → Type w}
[Monad m]
(f : δ → α → m δ)
(d : δ)
(h : Lean.HashSetImp α)
:
m δ
Instances For
@[inline]
def
Lean.HashSetImp.fold
{α : Type u}
{δ : Type w}
(f : δ → α → δ)
(d : δ)
(m : Lean.HashSetImp α)
:
δ
Instances For
@[inline]
def
Lean.HashSetImp.forBucketsM
{α : Type u}
{m : Type w → Type w}
[Monad m]
(data : Lean.HashSetBucket α)
(f : α → m PUnit)
:
m PUnit
Instances For
@[inline]
def
Lean.HashSetImp.forM
{α : Type u}
{m : Type w → Type w}
[Monad m]
(f : α → m PUnit)
(h : Lean.HashSetImp α)
:
m PUnit
Instances For
def
Lean.HashSetImp.find?
{α : Type u}
[BEq α]
[Hashable α]
(m : Lean.HashSetImp α)
(a : α)
:
Option α
Instances For
Instances For
def
Lean.HashSetImp.moveEntries
{α : Type u}
[Hashable α]
(i : Nat)
(source : Array (List α))
(target : Lean.HashSetBucket α)
:
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
Lean.HashSetImp.expand
{α : Type u}
[Hashable α]
(size : Nat)
(buckets : Lean.HashSetBucket α)
:
Instances For
Instances For
Instances For
- mkWff: ∀ {α : Type u} [inst : BEq α] [inst_1 : Hashable α] (n : Nat), Lean.HashSetImp.WellFormed (Lean.mkHashSetImp n)
- insertWff: ∀ {α : Type u} [inst : BEq α] [inst_1 : Hashable α] (m : Lean.HashSetImp α) (a : α), Lean.HashSetImp.WellFormed m → Lean.HashSetImp.WellFormed (Lean.HashSetImp.insert m a)
- eraseWff: ∀ {α : Type u} [inst : BEq α] [inst_1 : Hashable α] (m : Lean.HashSetImp α) (a : α), Lean.HashSetImp.WellFormed m → Lean.HashSetImp.WellFormed (Lean.HashSetImp.erase m a)
Instances For
Instances For
@[inline]
Instances For
@[inline]
def
Lean.HashSet.insert
{α : Type u}
:
{x : BEq α} → {x_1 : Hashable α} → Lean.HashSet α → α → Lean.HashSet α
Instances For
@[inline]
def
Lean.HashSet.erase
{α : Type u}
:
{x : BEq α} → {x_1 : Hashable α} → Lean.HashSet α → α → Lean.HashSet α
Instances For
@[inline]
def
Lean.HashSet.find?
{α : Type u}
:
{x : BEq α} → {x_1 : Hashable α} → Lean.HashSet α → α → Option α
Instances For
@[inline]
def
Lean.HashSet.contains
{α : Type u}
:
{x : BEq α} → {x_1 : Hashable α} → Lean.HashSet α → α → Bool
Instances For
@[inline]
def
Lean.HashSet.fold
{α : Type u}
:
{x : BEq α} → {x_1 : Hashable α} → {δ : Type w} → (δ → α → δ) → δ → Lean.HashSet α → δ
Instances For
@[inline]
Instances For
@[inline]
Instances For
Instances For
Instances For
Instances For
def
Lean.HashSet.insertMany
{α : Type u}
:
{x : BEq α} → {x_1 : Hashable α} → {ρ : Type u_1} → [inst : ForIn Id ρ α] → Lean.HashSet α → ρ → Lean.HashSet α
Insert many elements into a HashSet.