removeFirstOrNull

fun removeFirstOrNull(): T?

Removes the first element from this list and returns that removed element, or returns null if this list is empty.