@[instance_reducible]
Equations
- Lean.SSet.instInhabited = { default := Lean.SSet.instInhabited._aux_1 }
@[reducible, inline]
Equations
Instances For
@[reducible, inline]
Move from stage 1 into stage 2.
Equations
- s.switch = Lean.SMap.switch s
Instances For
@[reducible, inline]
abbrev Lean.SSet.fold {α : Type u} [BEq α] [Hashable α] {σ : Type u_1} (f : σ → α → σ) (init : σ) (s : SSet α) :
σ
Equations
- Lean.SSet.fold f init s = Lean.SMap.fold (fun (d : σ) (a : α) (x : Unit) => f d a) init s
Instances For
Equations
- Lean.List.toSSet es = List.foldl (fun (s : Lean.SSet α) (a : α) => s.insert a) { } es
Instances For
@[instance_reducible]
Equations
- Lean.instReprSSet = { reprPrec := fun (v : Lean.SSet α) (prec : Nat) => Repr.addAppParen (reprArg v.toList ++ Std.Format.text ".toSSet") prec }