head

abstract val head: E

The first element of this collection.

Here's a simple usage example:

val collection: NotEmptyCollection<Int> = notEmptyListOf(1, 2, 3)
val result: Int = collection.head
println(result) // 1