Documentation for routine trim-trailing
assembled from the following pages:
Class: Allomorph §
From Allomorph
(Allomorph) method trim-trailing §
method trim-trailing(Allomorph:)
Calls Str.trim-trailing
on the invocant's Str
value.
Class: Str §
From Str
(Str) method trim-trailing §
method trim-trailing(Str: --> Str)
Removes the whitespace characters from the end of a string. See also trim.
Class: Cool §
From Cool
(Cool) routine trim-trailing §
Defined as:
sub trim-trailing(Str(Cool))method trim-trailing()
Coerces the invocant (or in sub form, its argument) to Str, and returns the string with trailing whitespace stripped.
my = ' abc '.trim-trailing;say "<$stripped>"; # OUTPUT: «< abc>»