routine tclc
1 | class Str |
1.1 | (Str) routine tclc |
2 | class Cool |
2.1 | (Cool) routine tclc |
Documentation for routine tclc
assembled from the following types:
class Str
From Str
(Str) routine tclc
multi sub tclc(Str --> Str)multi method tclc(Str: --> Str)
Turns the first character to title case, and all other characters to lower case
class Cool
From Cool
(Cool) routine tclc
Defined as:
sub tclc(Str(Cool))method tclc()
Coerces the invocant (or in sub form, its argument) to Str, and returns it with the first letter case-folded to title case (or where not available, upper case), and the rest of the string case-folded to lower case.
say 'abC'.tclc; # OUTPUT: «Abc»