slice

fun slice(vararg expressions: Expression): Expression

Returns an item from an array or a substring from a string from a specified start index, or between a start index and an end index if set. The return value is inclusive of the start index but not of the end index.

fun slice(block: Expression.ExpressionBuilder.() -> Unit): Expression

DSL function for "slice".