Additional functions on Lean.Name
. #
We provide allNames
and allNamesByModule
.
Retrieve all names in the environment satisfying a predicate,
gathered together into a HashMap
according to the module they are defined in.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Decapitalize the last component of a name.
Equations
- Lean.Name.decapitalize n = Lean.Name.modifyBase n fun (x : Lean.Name) => match x with | Lean.Name.str p s => Lean.Name.str p (String.decapitalize s) | n => n