This is the documentation for the development version. There are no official binaries for it; build it from the source code in git. Download links on these pages work only after the release. For the current release, see version 7.0.

ltrim()

Deprecated in 5.0.

Replaced with method trimLeft() of the string instance.

ltrim(string): String

Removes blanks (space and tab characters) from the left side of specified string.

Table 1. Parameters

string

String

String to trim

Return

Source string with blanks at the left side removed.

println(ltrim("  abc def  ")); // Will print "abc def  "