LTrim

Not available in this language yet.
LTrim( value )
LTrim( value )
LTrim( value )
Not available in this language yet.
Not available in this language yet.
Not available in this language yet.
LTrim( value )

Description

The LTrim function removes all white spaces, tabs, and new lines from the beginning of a string.

Parameters

Argument Type Definition and Requirements

value

String

The string from which to remove leading spaces, tabs, and new lines.

Returns

A string value which has all the leading white spaces, tabs, and new lines removed.

Examples

The query below executes an array of independent LTrim operations and returns the results in an array. The result array position matches the execution array position. The first operation takes a string " Fire" and removes the leading space in the string. The resultant object "Fire" is placed in the top position of the result array. The second operation uses the string, "\t\n Fire" containing embedded tabs, new lines and spaces at the beginning of the string. A new string without the leading whitespaces, tabs, or new lines is placed in the second position of the result array.

System.out.println(
  client.query(
    Arr(
       LTrim(" Fire"),
       LTrim("\t\n    Fire")
    )
  ).get());
["Fire", "Fire"]