routine trim-leading
| 1 | class Str |
| 1.1 | (Str) method trim-leading |
| 2 | class Cool |
| 2.1 | (Cool) routine trim-leading |
Documentation for routine trim-leading assembled from the following types:
class Str
From Str
(Str) method trim-leading
method trim-leading(Str: --> Str)
Removes the whitespace characters from the beginning of a string. See also trim.
class Cool
From Cool
(Cool) routine trim-leading
Defined as:
sub trim-leading(Str(Cool))method trim-leading()
Coerces the invocant (or in sub form, its argument) to Str, and returns the string with leading whitespace stripped.
my = ' abc '.trim-leading;say "<$stripped>"; # OUTPUT: «<abc >»