first

fun <T> first(list: List<T>?): T?(source)

Returns the first element of the list, null if the list is null or empty.