Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

how to get the last element of an array in swift

if let last = a.last {
   print(last)
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #element #array #swift
ADD COMMENT
Topic
Name
8+1 =