net.corda.core / kotlin.collections.List / indexOfOrThrow

indexOfOrThrow

fun <T> List<T>.indexOfOrThrow(item: T): Int

Returns the index of the given item or throws IllegalArgumentException if not found.