slice

@JvmName(name = "sliceString")
open fun slice(value: Expression<String>, start: Expression<Number>, length: Expression<Number>? = null): Expression<String>

Returns 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. A UTF-16 surrogate pair counts as a single position.


@JvmName(name = "sliceList")
open fun <T> slice(value: Expression<List<T>>, start: Expression<Number>, length: Expression<Number>? = null): Expression<T>

Returns an item from an list 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.