indexOf

fun <T, D : Dimension> MultiArray<T, D>.indexOf(element: T): Int

Returns first index of element, or -1 if the collection does not contain element.