left
Returns a string containing the first number characters of the input string.

Languages
Built-in, C++, C#, Java.
Parameters
Name | Type | Description |
---|---|---|
string | xs:string | The input string. |
number | xs:int | Specifies how many characters to return, starting from the beginning of the string. |
Example
If the input string is This is a sentence and number is 4, the function returns This.