how to get the last element of an array in swift
if let last = a.last {
print(last)
}
how to get the last element of an array in swift
if let last = a.last {
print(last)
}
get last element of array swift
let array = ["A", "B", "C", 1, 2, 3]
let size = array.count
last_element = array[size-1]
print(last_element)
swift get last element of array
let array = [0, 1, 2, 3]
let lastElement = array.last
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us