instance
EStateM.instToStringResult
{ε σ α : Type u}
[ToString ε]
[ToString α]
:
ToString (EStateM.Result ε σ α)
Equations
- One or more equations did not get rendered due to their size.
Equations
- One or more equations did not get rendered due to their size.
@[inline]
def
EStateM.orElse'
{ε σ α δ : Type u}
[EStateM.Backtrackable δ σ]
(x₁ x₂ : EStateM ε σ α)
(useFirstEx : Bool := true)
:
EStateM ε σ α
Alternative orElse operator that allows to select which exception should be used.
The default is to use the first exception since the standard orElse
uses the second.
Equations
- One or more equations did not get rendered due to their size.
Instances For
@[always_inline]
Equations
- One or more equations did not get rendered due to their size.
@[inline]
Equations
- EStateM.fromStateM x s = match StateT.run x s with | (a, s') => EStateM.Result.ok a s'