routine lc
1 | class Str |
1.1 | (Str) routine lc |
2 | class Cool |
2.1 | (Cool) routine lc |
Documentation for routine lc
assembled from the following types:
class Str
From Str
(Str) routine lc
Defined as:
multi sub lc(Str --> Str)multi method lc(Str: --> Str)
Returns a lower-case version of the string.
Examples:
lc("A"); # RESULT: «"a"»"A".lc; # RESULT: «"a"»
class Cool
From Cool
(Cool) routine lc
Defined as:
sub lc(Str(Cool))method lc()
Coerces the invocant (or in sub form, its argument) to Str, and returns it case-folded to lower case.
say "ABC".lc; # OUTPUT: «abc»