removeFirst
Removes the first element from this mutable list and returns that removed element, or throws NoSuchElementException if this list is empty.
Try the revamped Kotlin docs design →
Try the revamped Kotlin docs design!
Removes the first element from this mutable list and returns that removed element, or throws NoSuchElementException if this list is empty.