first

open override fun first(): E?

Provides the element at the beginning of the collection.

Return

The element at the beginning of the collection or null if the collection is empty.