how to find last element in array kotlin code example Example: last element of an array kotlin myList.last()