Mutable #
Equations
- x.modifyUnsafe f = x.set (f x.get) (f x.get)
Instances For
@[reducible, inline]
unsafe abbrev
Mutable.modifyImpl
{α : Type u}
(x : Mutable α)
(f : α → α)
(hf : ∀ (a : α), f a = a)
:
α
Equations
- x.modifyImpl f hf = x.modifyUnsafe f
Instances For
@[reducible, inline]
unsafe abbrev
Mutable.getModifyImpl
{α : Type u}
{β : Type v}
(x : Mutable α)
(f : α → β × α)
(hgf : ∀ (a : α), (f a).snd = a)
:
β
Equations
- x.getModifyImpl f hgf = x.getModifyUnsafe f