left
Extracts a sub-string with a specific length from the first argument, starting with the left-most character.
Any data type can be used for the first argument. Types other than string are converted to string before the function is applied.
Arguments
- Input string.
- Length of the sub-string to extract as an integer.
Examples
Expression | Result |
---|---|
left("Hello World!", 5) | "Hello" |