kirillrakhman
inline fun <R, T> R.removeFirstX(predicate: (T) -> Boolean): T? where R : MutableCollection<T>, R : RandomAccess { // .... }