You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In particular, unless the do block is used to chain functions that return an Option type, it can be removed.
Additionally, functions which depend on total functions could be redefined without the do block once their dependencies are stripped of the Option return type. For example
The Lean generated code currently uses more
do
blocks for function definitions than strictly necessary, as an examplecould be defined as
In particular, unless the
do
block is used to chain functions that return anOption
type, it can be removed.Additionally, functions which depend on total functions could be redefined without the
do
block once their dependencies are stripped of theOption
return type. For exampleOnce
«_+Int_»
andsizeWordStackAux
return aSortInt
type instead ofOption SortInt
, it could be redefined as the following or similarThe text was updated successfully, but these errors were encountered: