Open spinylobster opened 1 month ago
in https://leanprover-community.github.io/lean4-metaprogramming-book/main/04_metam.html#backtracking ,
Lean.commitIfNoEx (x : α) : m α executes x. If x succeeds, commitIfNoEx returns its result. If x throws an exception, commitIfNoEx backtracks the state and rethrows the exception.
Lean.commitIfNoEx (x : α) : m α
x
commitIfNoEx
the actual signature is Lean.commitIfNoEx (x : m α) : m α.
Lean.commitIfNoEx (x : m α) : m α
in https://leanprover-community.github.io/lean4-metaprogramming-book/main/04_metam.html#backtracking ,
the actual signature is
Lean.commitIfNoEx (x : m α) : m α
.