Function left()
extracts a substring with specified length from the left of a string and return this substring.
Arguments:
- String <string>
- Length <number>
Returns:
- String <string>
Common Usage
Example: Direct calculate
uncollect ["graph", "database"] as a
uncollect [2, 3] as b
return left(a, b)
| left(a, b) |
|------------|
| gr |
| dat |
Exalmple: Multiply and calculate
uncollect ["graph", "database"] as a
uncollect [2, 3] as b
with left(a, b) as c
return c
| c |
|-----|
| gr |
| gra |
| da |
| dat |