firstIndexed

inline fun <T> Array<T>.firstIndexed(filter: (index: Int, T) -> Boolean, onNext: (index: Int, T) -> Unit = { _, _ -> }, onSuccess: () -> Unit = {}, onFail: () -> Unit = {}, onComplete: () -> Unit = {})