FQL v4 will be decommissioned on June 30, 2025. Ensure that you complete your migration from FQL v4 to FQL v10 by that date. For more details, review the migration guide. Contact support@fauna.com with any questions. |
LTrim
This reference topic applies to FQL v4. Go to this page for the latest FQL v10 reference topics. |
LTrim( value )
ltrim( value )
LTrim( value )
LTrim( value )
LTrim( value )
Description
The LTrim
function removes all white spaces, tabs, and newlines from
the beginning of the provided string.
Parameters
Parameter | Type | Definition and Requirements |
---|---|---|
|
String |
The String from which to remove leading spaces, tabs, and newlines. |
Examples
The following query executes an array of independent LTrim
operations and returns the results in an array. The result array
position matches the execution array position. The individual operations
are:
-
The string " Fire" is processed, resulting in "Fire" which becomes the first item in the result array.
-
The string "\t\n Fire" is processed, resulting in "Fire", which becomes the second item in the result array.
[ 'Fire', 'Fire' ]
['Fire', 'Fire']
[Fire Fire]
Arr(StringV(Fire), StringV(Fire))
[ 'Fire', 'Fire' ]
Is this article helpful?
Tell Fauna how the article can be improved:
Visit Fauna's forums
or email docs@fauna.com
Thank you for your feedback!