kirillrakhman
fun <T> MutableList<T>.removeFirst(n: Int) : List<T> { val result = take(n) subList(0, n).clear() return result }