deleteFirst

inline fun <T> MutableList<T>.deleteFirst(filter: (T) -> Boolean): T?