SLICE
Last updated
Was this helpful?
SLICE takes a string (or list), a start index, and an end index, and returns the portion between those positions. The start index is inclusive and the end index is exclusive. Indexing starts at 0.
SLICE('Hello World', 6, 11)This returns "World".
SLICE([1, 2, 3, 4, 5], 1, 4)This returns [2, 3, 4].
Last updated
Was this helpful?
Was this helpful?
