KotlinListfirst

Returns the first element.

Syntax

list.first() / list.firstOrNull()