In Str§
See primary documentation in context for routine tclc
multi tclc(Str --> Str)multi method tclc(Str: --> Str)
Turns the first character to titlecase, and all other characters to lowercase.
In Allomorph§
See primary documentation in context for method tclc
method tclc(Allomorph:)
Calls Str.tclc
on the invocant's Str
value.
In Cool§
See primary documentation in context for routine tclc
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 titlecase (or where not available, uppercase), and the rest of the string case-folded to lowercase.
say 'abC'.tclc; # OUTPUT: «Abc»