Documentation

Lean.Data.SSet

def Lean.SSet (α : Type u) [BEq α] [Hashable α] :

Staged set. It is just a simple wrapper on top of Staged maps.

Instances For
    @[inline, reducible]
    abbrev Lean.SSet.empty {α : Type u} [BEq α] [Hashable α] :
    Instances For
      @[inline, reducible]
      abbrev Lean.SSet.insert {α : Type u} [BEq α] [Hashable α] (s : Lean.SSet α) (a : α) :
      Instances For
        @[inline, reducible]
        abbrev Lean.SSet.contains {α : Type u} [BEq α] [Hashable α] (s : Lean.SSet α) (a : α) :
        Instances For
          @[inline, reducible]
          abbrev Lean.SSet.forM {α : Type u} [BEq α] [Hashable α] {m : Type u_1 → Type u_1} [Monad m] (s : Lean.SSet α) (f : αm PUnit) :
          Instances For
            @[inline, reducible]
            abbrev Lean.SSet.switch {α : Type u} [BEq α] [Hashable α] (s : Lean.SSet α) :

            Move from stage 1 into stage 2.

            Instances For
              @[inline, reducible]
              abbrev Lean.SSet.fold {α : Type u} [BEq α] [Hashable α] {σ : Type u_1} (f : σασ) (init : σ) (s : Lean.SSet α) :
              σ
              Instances For
                @[inline, reducible]
                abbrev Lean.SSet.size {α : Type u} [BEq α] [Hashable α] (s : Lean.SSet α) :
                Instances For
                  def Lean.SSet.toList {α : Type u} [BEq α] [Hashable α] (m : Lean.SSet α) :
                  List α
                  Instances For
                    def List.toSSet {α : Type u_1} [BEq α] [Hashable α] (es : List α) :
                    Instances For
                      instance instReprSSet {α : Type u_1} :
                      {x : BEq α} → {x_1 : Hashable α} → [inst : Repr α] → Repr (Lean.SSet α)