kotlin last element of array
snippet in kotlin

kotlin last element of array

user8582

// Use the last() function
var intArray = arrayOf(10, 20, 30, 40, 50)

println(intArray.last())

// Returns 50

last element of an array kotlin

user7338

myList.last()