last but first element in araray in kotlin code example
Example: kotlin last element of array
// Use the last() function
var intArray = arrayOf(10, 20, 30, 40, 50)
println(intArray.last())
// Returns 50
// Use the last() function
var intArray = arrayOf(10, 20, 30, 40, 50)
println(intArray.last())
// Returns 50