SLICE

Description

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.

Example

SLICE('Hello World', 6, 11)

This returns "World".

Example with a list

SLICE([1, 2, 3, 4, 5], 1, 4)

This returns [2, 3, 4].

Last updated

Was this helpful?