@[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)
:
m PUnit
Equations
- Lean.SSet.forM s f = Lean.SMap.forM s fun (a : α) (x : Unit) => f a
Instances For
@[inline, reducible]
Move from stage 1 into stage 2.
Equations
Instances For
@[inline, reducible]
abbrev
Lean.SSet.fold
{α : Type u}
[BEq α]
[Hashable α]
{σ : Type u_1}
(f : σ → α → σ)
(init : σ)
(s : Lean.SSet α)
:
σ
Equations
- Lean.SSet.fold f init s = Lean.SMap.fold (fun (d : σ) (a : α) (x : Unit) => f d a) init s
Instances For
@[inline, reducible]
Equations
Instances For
Equations
- Lean.SSet.toList m = Lean.SSet.fold (fun (es : List α) (a : α) => a :: es) [] m
Instances For
Equations
- instReprSSet = { reprPrec := fun (v : Lean.SSet α) (prec : Nat) => Repr.addAppParen (reprArg (Lean.SSet.toList v) ++ Std.Format.text ".toSSet") prec }