Converts a snake case, kebab case, or lower camel case String
to upper camel case.
Equations
- Lake.toUpperCamelCaseString str = let parts := str.split fun (chr : Char) => chr == '_' || chr == '-'; String.join (List.map (fun (x : String) => x.capitalize) parts)
Instances For
Converts a snake case, kebab case, or lower camel case Name
to upper camel case.
Equations
- Lake.toUpperCamelCase (p.str s) = (Lake.toUpperCamelCase p).mkStr (Lake.toUpperCamelCaseString s)
- Lake.toUpperCamelCase name = name