removeFirst

fun removeFirst(): T?

The list order is maintained.

Return

removes the first element in the list and returns it, or null if the list is empty