package org.fossify.musicplayer.inlines inline fun Collection.indexOfFirstOrNull(predicate: (T) -> Boolean): Int? { for ((index, item) in this.withIndex()) { if (predicate(item)) return index } return null }