The tclc routine

Combined from primary sources listed below.

In class Str ( Type/Str )§

See primary docmentation in context for routine tclc.

routine tclc§

multi        tclc(Str:D  --> Str:D)
multi method tclc(Str:D: --> Str:D)

Turns the first character to titlecase, and all other characters to lowercase.

In class Cool ( Type/Cool )§

See primary docmentation in context for routine tclc.

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␤»

In class Allomorph ( Type/Allomorph )§

See primary docmentation in context for method tclc.

method tclc§

method tclc(Allomorph:D:)

Calls Str.tclc on the invocant's Str value.