removeFirst

fun <T> MutableList<T>.removeFirst(predicate: (T) -> Boolean): Boolean