@[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 => 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 => f d a) init s
Instances For
@[inline, reducible]
Equations
Instances For
Equations
- Lean.SSet.toList m = Lean.SSet.fold (fun es a => a :: es) [] m
Instances For
Equations
- instReprSSet = { reprPrec := fun v prec => Repr.addAppParen (reprArg (Lean.SSet.toList v) ++ Std.Format.text ".toSSet") prec }