Function substring()
extracts a substring with specified length from the specified start index of a string and return this substring.
Arguments:
- String <string>
- Start Index <number>
- Length <number>
Returns:
- String <string>
Common Usage
Example: Direct calculate
uncollect ["graph", "database"] as a
uncollect [2, 3] as b
return substring(a, 1, b)
| substring(a, b) |
|-----------------|
| ra |
| ata |
Exalmple: Multiply and calculate
uncollect ["graph", "database"] as a
uncollect [2, 3] as b
with substring(a, 1, b) as c
return c
| c |
|-----|
| ra |
| rap |
| at |
| ata |