indexOf

@JvmName(name = "indexOfList")
fun <T : ExpressionValue> Expression<ListValue<T>>.indexOf(item: Expression<T>, startIndex: Expression<IntValue>? = null): Expression<IntValue>(source)
@JvmName(name = "indexOfList")
fun <T : ExpressionValue> Expression<ListValue<T>>.indexOf(item: Expression<T>, startIndex: Int? = null): Expression<IntValue>(source)

Returns the first index at which the item is located in this list, or -1 if it cannot be found. Accepts an optional startIndex from where to begin the search.


@JvmName(name = "indexOfString")
fun Expression<StringValue>.indexOf(substring: Expression<StringValue>, startIndex: Expression<IntValue>? = null): Expression<IntValue>(source)
@JvmName(name = "indexOfString")
fun String.indexOf(substring: Expression<StringValue>, startIndex: Expression<IntValue>? = null): Expression<IntValue>(source)
@JvmName(name = "indexOfString")
fun Expression<StringValue>.indexOf(substring: String, startIndex: Int? = null): Expression<IntValue>(source)

Returns the first index at which the substring is located in this string, or -1 if it cannot be found. Accepts an optional startIndex from where to begin the search.