Turn non-existance of the key into default initialisation.
This silences ONLY the property not found:
error.
If the parsing of an existing value fails, we propagate the error.
Equations
- j.getObjValAsD α k D = match j.getObjVal? k with | Except.error a => pure D | Except.ok val => Lean.fromJson? val
Instances For
getObjValAsD! = getObjValAsD default
for inhabited types.
Equations
- j.getObjValAsD! α k = j.getObjValAsD α k default
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- EvmYul.UInt256.fromBlob! blob = (EvmYul.UInt256.fromBlob? blob).toOption.get!
Instances For
Equations
- EvmYul.AccountAddress.fromBlob? s = (fun (x : EvmYul.UInt256) => Fin.ofNat x.toNat) <$> EvmYul.UInt256.fromBlob? s
Instances For
Equations
Instances For
def
EvmYul.DebuggingAndProfiling.testJsonParser
(α : Type)
[Repr α]
[Lean.FromJson α]
(s : String)
:
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
computeToList!
{α : Type u_1}
[LE α]
[IsTrans α fun (x1 x2 : α) => x1 ≤ x2]
[IsAntisymm α fun (x1 x2 : α) => x1 ≤ x2]
[IsTotal α fun (x1 x2 : α) => x1 ≤ x2]
[DecidableRel fun (x1 x2 : α) => x1 ≤ x2]
(m : Multiset α)
:
List α
Equations
- computeToList! m = Multiset.sort (fun (x1 x2 : α) => x1 ≤ x2) m
Instances For
Equations
- One or more equations did not get rendered due to their size.