findIndex

open fun <E> findIndex(@NonNull list: List<E>, @NonNull filter: (E) -> Boolean): Int

Find the index of the first element which passes the filter

Return

Index if found, otherwise -1