consumeFirst

fun MutableList<String>.consumeFirst(): String

Remove and return the first element in a mutable list.