Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

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)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #element #array #swift
ADD COMMENT
Topic
Name
4+6 =