String helpers #
Small string operations used across the library, written over List Char so they do not depend
on the String/String.Slice API, which changes between Lean releases.
Equations
- TypeDB.Str.dropRight s n = String.ofList (List.take (s.length - n) s.toList)
Instances For
Equations
- TypeDB.Str.takeRight s n = String.ofList (List.drop (s.length - n) s.toList)
Instances For
Equations
- TypeDB.Str.dropLeft s n = String.ofList (List.drop n s.toList)
Instances For
Equations
Instances For
Equations
Instances For
Equations
Instances For
Whether sub occurs in s.
Instances For
kebab-case of a CamelCase identifier: FriendRequest ↦ friend-request.
Equations
- One or more equations did not get rendered due to their size.