Documentation

Lean.Data.Name

@[export lean_name_hash_exported]
Equations
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.
Equations
Equations
@[inline]

Alternative HasLt instance.

Equations

The frontend does not allow user declarations to start with _ in any of its parts. We use name parts starting with _ internally to create auxiliary names (e.g., _private).

Equations
Equations
Equations
Equations
Equations
def Lean.Name.anyS (n : Lean.Name) (f : StringBool) :

Return true if n contains a string part s that satifies f.

Examples:

#eval (`foo.bla).anyS (·.startsWith "fo") -- true
#eval (`foo.bla).anyS (·.startsWith "boo") -- false
Equations