How To Get The Last Element Of An Array In

[Solved] How To Get The Last Element Of An Array In | Swift - Code Explorer | yomemimo.com
Question : get last element of array swift

Answered by : cruel-centipede-9blpuaxn0fju

let array = ["A", "B", "C", 1, 2, 3]
let size = array.count
last_element = array[size-1]
print(last_element)

Source : | Last Update : Mon, 14 Sep 20

Answers related to how to get the last element of an array in swift

Code Explorer Popular Question For Swift