trim-leading
ErrorsCollection

trim-leading

Synthesised documentation from type/Allomorph type/Cool type/Str

From type/Allomorph

See Original text in context

method trim-leading(Allomorph:D:)

Calls Str.trim-leading on the invocant's Str value.

From type/Cool

See Original text in context

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 $stripped = '  abc '.trim-leading;
say "<$stripped>";          # OUTPUT: «<abc >␤»

From type/Str

See Original text in context

method trim-leading(Str:D: --> Str)

Removes the whitespace characters from the beginning of a string. See also trim.